<?php

namespace App\Http\Controllers\Api;

use App\Http\Controllers\Controller;
use Illuminate\Http\Request;
use Illuminate\Support\Str;

class FmwDouYinController extends Controller
{
    protected $baseUrl = '/api/douyin/';

    // sprintf("FMW_DY_SOID_%s", $this->getDateTime(Str::random(3)))
    protected $orderSn = 'FSOMS202407180001';
    // 售后类型，枚举为 0(退货退款),1(已发货仅退款),2(未发货仅退款),3(换货),6(价保),7(补寄)
    protected $aftersale_type = 3;
    // 售后状态 3-换货待买家收货；6-待商家同意；7-待买家退货；8-待商家发货；11-待商家二次同意；12-售后成功；14-换货成功；27-商家一次拒绝；28-售后失败；29-商家二次拒绝；
    protected $aftersale_status = 6;
    // 1-待退款;2-退款中;3-退款成功;4-退款失败;5-追缴成功;
    protected $refund_status = 0;

    // 门店ID
    protected $store_id = 121323;
    // 门店名称
    protected $store_name = 121323;
    // 售后总金额（含运费）
    protected $refund_total_amount = 10000;

    // 买家购买运费（分）
    protected $post_amount = 0;
    // 商品实际支付金额
    protected $sku_pay_amount = 10000;
    // 购买税费（分）
    protected $tax_amount = 0;
    // 优惠总金额
    protected $promotion_amount = 0;
    // skuID
    protected $sku_id = 'sku_001';
    // 商家SKU编码
    protected $shop_sku_code = '';
    // 购买数量
    protected $item_num = 5;
    // sku商品总原价（不含优惠）
    protected $item_sum_amount = 10000;
    // 买家实付金额（分）
    protected $pay_amount = 10000;
    // 平台 sku code
    protected $product_id = 'originSKUA00001';
    // 商品单信息
    protected $sku_order_id = '5042745232625487181';

    // 换货商品Sku
    protected $exchangeSkuCode = 'SKUA00005';
    // 换货商品数量
    protected $exchangeSkuQuantity = 1;
    // 换货商品的价格，单位分
    protected $exchangeSkuPrice = 10000;

    // 订单状态 1-待确认/待支付（订单创建完毕） 105-已支付 2-备货中 101-部分发货 3-已发货（全部发货） 4-已取消 5-已完成（已收货）
    protected $orderStatus = '2';

    // 主流程状态，1-待确认/待支付（订单创建完毕）103-部分支付 105-已支付 2-备货中 101-部分发货 3-已发货（全部发货）4-已取消 5-已完成（已收货）
    // 21-发货前退款完结 22-发货后退款完结 39-收货后退款完结
    protected $orderMainStatus = 2;

    // 交易类型：0-普通；1-拼团；2-定金预售；3-订金找货；4-拍卖；5-0元单；6-回收；7-寄卖；10-寄样；11-0元抽奖(超级福袋)；
    // 12-达人买样；13-普通定制；16-大众竞拍；18-小时达；102-定金预售的赠品单；103-收款；
    protected $orderTradeType = 0;

    protected $requestData = [];

    public function index(Request $request)
    {
        $method = str_replace($this->baseUrl, '', $request->getRequestUri());
        if (strpos($method, '?')) {
            $method = substr($method, 0, strpos($method, '?'));
        }

        if (empty($method)) {
            return [];
        }
        $method = str_replace('/', '_', $method);

        if (!method_exists($this, $method)) {
            echo sprintf("[%s] mock function not exists", $method);
            exit;
        }
        $this->requestData = json_decode($request->get('param_json'), true);

        return $this->$method($request);
    }

    public function sku_syncStock(Request $request)
    {
        $response = [
            "code" => 10000,
            "sub_msg" => "",
            "sub_code" => "",
            "msg" => "success"
        ];
//        $response = [
//            "code" => "90000",
//            "sub_msg" => "7:更新库存数失败",
//            "sub_code" => "isp.unknown-error",
//            "msg" => "未知错误"
//        ];

        return $response;
    }

    public function order_addressConfirm(Request $request)
    {
        $response = [
            "code" => 10000,
            "sub_msg" => "",
            "sub_code" => "",
            "msg" => "success"
        ];
        return $response;
    }

    // 物流下单
    public function logistics_newCreateOrder(Request $request)
    {
        $params = json_decode($request->get('param_json'), true);

        $ebillInfos = [];
        $logisticsCode = $params['logistics_code'];
        $orderChannel = $params['order_channel'];
        $orderInfos = json_decode($params['order_infos'], true);
        foreach ($orderInfos as $info) {
            $orderId = $info['order_id'];
            $packId = $info['pack_id'];
            $totalPackCount = $info['total_pack_count'] ?? 1;
            $subWayBillCodes = $this->_mockSubWaybillCode($totalPackCount - 1);
            $ebillInfos[] = [
                "company" => $logisticsCode,
                "hint_msg" => "success",
                "order_id" => $orderId,
                "pack_id" => $packId,
                "track_no" => sprintf('XCXD_DY_%s_%s_%s', strtoupper($logisticsCode), rand(10, 99), $orderId),
                "sort_code" => sprintf('%s %s-%s %s', rand(100, 999), rand(100, 999), rand(10, 99), rand(100, 999)),
                "package_center_code" => rand(100000, 999999),
                "package_center_name" => "XX集包",
                "short_address_code" => "402",
                "short_address_name" => "大头笔",
                "extra_resp" => "",
                "sub_waybill_codes" => $subWayBillCodes,
                "order_channel" => $orderChannel,
                "shipping_code" => null
            ];
        }

        return [
            "log_id" => sprintf('%s%s', date('YmdHis', time()), Str::random(8)),
            "code" => 10000,
            "msg" => "success",
            "sub_code" => "",
            "sub_msg" => "",
            "data" => [
                "ebill_infos" => $ebillInfos,
                "err_infos" => []
            ]
        ];
    }

    protected function _mockSubWaybillCode($totalPackCount = 1)
    {
        if ($totalPackCount <= 1) {
            return null;
        }

        $subWayBillCodes = [];
        for ($i = 0; $i < $totalPackCount; $i++) {
            $subWayBillCodes[] = sprintf('DY_SUB_%s_%s', time(), rand(1000, 9999));
        }
        return join(',', $subWayBillCodes);
    }

    // 获取打印数据
    public function logistics_waybillApply(Request $request)
    {
        $params = json_decode($request->get('param_json'), true);
        $waybillInfos = json_decode($params['waybill_applies'], true);

        $tmpWaybillInfos = [];
        foreach ($waybillInfos as $waybillInfo) {
            $tmpWaybillInfos[] = [
                "order_id" => last(explode('_', $waybillInfo['track_no'])),
                "track_no" => $waybillInfo['track_no'],
                "print_data" => "xfum3HPTK610vflOE1nkqCshHBtqUTIqwvw3TTP3wAkrkKFqq7nvPGIKm/0z5FZjLg8oE+JMGE79vO5BCu49Tp93RfzmLbd6VB5QfLbIRE+hYMVPWIGDgmrYGD1RH+25ixpuuoE9m8/6bexzS1JY5psPKIJ1LhyVQ4z6Yao2G0OffrE/eUBQ1g5LDJKr888j+3IOrYMrFcADzNLB2EXVgYEx88g8ADIYap2I9WlHKbWWiGPuMDKacxBjSLjlgr+4MXa9N3F2YHzfXGsOJ6FD0zP80cb6NjvhTNXrEtxdNb6nuMFOSTQ/QkjaO9BsPNR39wjOrwZOnEZWt979NMWipXDI7ZMIOOfxbwqbGI0e67UD68vyIXCN90hwn+kAoT/C2rPPVn8G02XdOCAJGd92INg2Mo3HsVUxAKrUwjTq6aYG7R2dHqx96c3oLFJohsikMMkHVxEQoTg/hEDlAzjWdRlyaIFoJ9CLVJjRuxhEb6U8SAvPPQarrvwVNHAhRFbPKffvEYFBh5JGZxNiZ+oYSwqkewWbhlFdUorwgv8ScF9hwuU8IphaMPbV3MKEfKfSk7jvmQQ87DgH5tveKL6TjEDuOaDKH+B5Tq911VxBb8H79q7Oaqf0ECuYV5kIhm5w17ICYwApaDsudb9ZsUQGsUnutZaiQMHGROoBumAKeUvOIcEzMSgkO9f8x5DZY3f77wX+KYyvD9x5y5IAy70vfuxmq5+DWx2Te0rXKkVA07hYf8v0cT1okdzSeB/nRw3GZ6YMh4pGyiiwL30NbevjHVCYvGOau3aL3rgN27qZ9hOpocoIR3Ev3dHPB5FirttjYvv2DHZpEllj+6j9oYwvbuAdTGBbWLmZhghAQ/InsSpv1zs+L5ynorGgudrKBJOoHdQfwO4vsk+ob9GG5vKklAxFZWbd/3xJh5hvywVda82skYebGFUPnZx7oCNIFxlDHxveRdj5BZHbbJc6cK4lVtph6BjWYM7QvFjgPf8U8OCX6GpZ7hrss5f9MS1uot3DM1ArEgVMDu7IpVZO2bhbnilkS0nHTxY/8SBv5YphcdBZJ9nwOxx5+/6v7u/EAiW7luEd4QKyXqfj6JOKQiob0IWEqv/7eLHIFfr3VKZtmLjM59dmmjHWrle92UxvFaj5TEIF1T1UGzeAmDcL+GZWhU2psXeot4+EV41sZ3efEoPE9rEWtKYB9LTgJkyhGV62wbGVCxsZDLz1uXyspp+bNFaDBw5Fxl31vu8wl0WN6K1GheJm0XrAG9WA1mw0fX0SzY1pUOcChYc3eJjvbLYqVCHqn2OpJ6keFsbPRoPJ/NKRAul8C3gvVOt7EeuYSEJDbrr3wnjdVBrngEtxihJrDgkli755jxvEDhWbmXATLqDi5Ph/7bWARhewx2gZGI41f/0ri2JvHTZsSRfRKKVZMc/AR0Sz+fT8cT1+dHseOYKuIkpYsTMGCbkmOIg1wG6EIr5zRGbmgPZujOMZIIwVJRRlzq/A5bgmDvr4ZWvbXP43uL/o2F/aqcJAn1oYpb6tvHAQJN7SkKE+HY21efxnMaHfxYGHqGlQQydm3c65b44OfwZkpX3Te3jZGaRW7pq3z+BzS/vOLqp6lTe9V2MtgihX90NlWRjTYgdB2OcvKDy77kMm9IP/Fsqa0qRcOWVaCiiAX4dg7T+3aGNEavpSsA0ew6GsklM9YRwfTNjSLAuja0qjS5el55/Qi4GP0tMq3ivoatxgb3BW4wpNw8K9M6wXEIEnYZi70qQZCOwVX6zkFKmBfe+9WPDpBI5ybkMAYcjx7bq3An5CFarTvE/eaKVwM97/2BupRKZ38pFBFyRdCXmsFnHsLSVF1sMw/sh6WLJDg2BN7rKVK2zKGw52aD7ENmfDAwBUWyv7bCTIw24j658+TUlybY7ffKu1St3pWIZArSdfYxvNYYfMfmVu/toomRXfX1h/+6PH7BOnaI6cUXtzJQLm4kT0v4HMj26yrtTdEH+UyPwTaLMNy5AUC+RZZTCbDSKoziZqOLNCAmDe7Soqk94Ni97BWeqfqhzZDIFwBLNmraHlJiok2/+G9S5LDfb1st0qTjOBsgZwtlFXUE1RQjZaPzYmM/vwwMDnozkDKLJqznoguVt59ptqMIRz1eHAU7kdmtIgCYcycXV+BsWoFVAAw6rRzL+m7EWmVSUiXXjGXlY0yy+hrL02oH9xX5evLTQMSTdZPPQVODT4dANwNzBsI/bSfJvUZI5vcs26pe6NdGf5uDensOBTk7inzFh7XUKhE52J5hMLEARSRAfzWqa4F/XdUiOBAVBFRx+ZG+sfMFGYe2WPumumFT4zM7596fnbo2EIZkrO9Yz1GJqqN2s8Wl2jyG2L/KkYVx0Y/pUbBKxljEN4fSUWNKorSBdFRnEHAvTlpg4ilSejuyvuF47r4z2cHQ55rvNMyCOKCddoMNQT3IGo8FEivJZiIdiTkORfT+aG6Sp2jXAGo2gHisvPfp/jfmFGuMlFNFjtJi1fROlSZuRXP78GtgOw3l5VgXeHmg2VL/jh1hDENhuGXDr2rKiCsg3p02Z3b8W4FA0IPFeXoFs0tfU8tRa7i7K1QtlTEm8FyeyNCQCCDil2xoj4vSfDX2TWZbkaWKGlwqnA/VOqQtoQYOxYMqxEK6UyMXhmDGSdIRqVRYS5/OF8A2LoAZ1FK325OAo2HWRRFVxQQBbX9xALzFfvLw3tXEUI4MiTi2+frzJ9VdRJoUNkFMKXgEon6NPtOvfe4787T4RzAOWJTE1vB095b3t0/V4RbvW2bwUQHIVW5oeHfXXvwJ4Z04yDkcgLtMbOYklSCEYAWaajpdx3K8jXLZ0t0EeRPtR+bmT5ZrSKlnnvgbqU4uQG+Z1KpU+KVQZqFEgyryv+XQgvENFtcjH7pMU5/NnzBTb7e6AQt1YdLErEBo6UXNz/kEh9HEYi7jHQtbHuXsfUcByfKuSOHvJunN7a25OeQdgFl0Ng6k5NocydRo/SbcSvU4UQnXW82W2rQ9M/p4QOs2H50EfIdcbhgtgjoZQeRrzxlnGO3nlTjEbU8Iq6AKNxSOeQA24bsasx7djDT4NTfA4UQH+Nt627pBrsoWA9BupYBBjpmA1NMYN0429zLfwdxsddFCMwYxgT99FAyMZ3IyIab20MyEmN2CAiQ6vrMSegXAiyoD5U/Cpfk7Wz2n51oz5U3XR3um4EQejZ9cr+pA8WoOqcSM+wE5nR9LvbyKx/WLunDTzMDAbK/KWqtiNmSbAP5QNebuwRNPboEI2fYG28xlmQtVqxsKDP/UO0EzEvRe7jtJASlFWsOmaRQrprha6rQVet2Nb2wlbXa3d0z95j7LF3AA3U7wh3nmelJvFenDk8tfIeDJ4CwAEmGpORMBGm37JCvijWlLvS8ljBAddgejGZDt+RH8WR/kkKwF+vyY2AXID+p6y7aiS+vMOdgavuOq6RWewFQ4xJqo80M6NcyMx7XnQQOGDqG9al9UTRERuaf4t7oRx0GlEzWwmN7zO0y3musVeBXrNNtP3+onRUq+UnpfKgV7spX/VB2qxRG2ijxp/2iqfHfnzvlmMH+f8dBjEvW4fv57Iuuq19rcCr/UjFjkFBwePa6USmLrJWCl3+p+SnszVHgTi54TUBKV5tYkoibZGh2osJsGi4ZFOfuso0/W63mXRXHSHDo6iT+ESBQyfwszzlFBiUJqiTDCaWsqvvQiwduKtvT6N2+StIe3DAgUVTAA==",
                "sign" => "XdelW25KSIg1RWceCuVYg3oG7U/dQ2QNxF/oBnoS/ypnvKcZDJQODLbVq3y2e8UV3f+UBodO71qVUj1RVYLvppAViOo6qYeE+wRxTKqcBRBDhnrLNmlKPBzIb0Xn3Vy4uWBzS0M8eQ0YP07JMHIxdthzWXDQdC7TMFcjBIXkRcDht9X0SpMPfs+keSZNioei9c5tCulSyVPNvdrAIj1Du9PFhwV9b808RjZq+J7KN1QH0DYU4VQu5VujDy/ZEYn6RDZxZI2bpILXfc4aw1AZ3lRJyFroLrYWVwOpE5Hex7zdtesOS6l3rw5H8ToS+E3SBf8HRpy7WgkJOBCAufXBnQ=="
            ];
        }

        return [
            "log_id" => sprintf('%s%s', date('YmdHis', time()), Str::random(8)),
            "code" => 10000,
            "msg" => "success",
            "sub_code" => "",
            "sub_msg" => "",
            "data" => [
                "waybill_infos" => $tmpWaybillInfos,
                "err_infos" => []
            ]
        ];
    }

    public function afterSale_List()
    {
        $order_logistic = [
            "tracking_no" => "75567647407840",
            "logistics_time" => 1678238518,
            "company_code" => "ZTO",
            "logistics_state" => 3,
            "company_name" => "中通快递"
        ];

        $related_order_info = [
            "pay_amount" => 1,
            "create_time" => time(),
            "post_amount" => 0,
            "aftersale_tax_amount" => 0,
            "promotion_pay_amount" => 0,
            "logistics_code" => "",
            "order_status" => 3, // 订单状态，枚举为 2(未发货),3(已发货),5(已收货或已完成),255(已完成)
            "product_name" => "3M思高抗菌百洁布刷碗洗碗海绵布去除油渍去污耐用加厚双面不沾油",
            "is_oversea_order" => 0,
            "logistics_company_name" => "",
            "tags" => [],
            "price" => 1,
            "aftersale_pay_amount" => 0,
            "shop_sku_code" => $this->shop_sku_code, // 商家SKU编码
            "item_num" => $this->item_num, // 购买数量
            "given_sku_order_ids" => [],
            "tax_amount" => 0,
            "product_id" => $this->product_id, // 商品ID
            "sku_order_id" => $this->sku_order_id, // 商品单信息
            "aftersale_post_amount" => 0,
            "aftersale_item_num" => 1,
            "sku_spec" => [["name" => "颜色分类", "value" => "海绵百洁布 2包共10片"]],
            "product_image" => "https://p3-aio.ecombdimg.com/obj/ecom-shop-material/NJYLHpQb_m_d7ad6d525830b57063152777268c6809_sx_102404_www800-800",
        ];

        $item = [
            "aftersale_info" => [
                "aftersale_order_type" => 1,
                "aftersale_status" => $this->aftersale_status,
                "aftersale_type" => $this->aftersale_type,
                "aftersale_id" => sprintf("FMW_DY_SH_%s", $this->getDateTime(Str::random(3))),
                "is_agree_refuse_sign" => 0,
                "related_id" => "5042745232625487181",
                "create_time" => time(),
                "update_time" => time(),
                "aftersale_num" => 1,
                "return_promotion_amount" => 0,
                "store_id" => 0,
                "refund_status" => $this->refund_status,
                "aftersale_tags" => [],
                "aftersale_refund_type" => 0,
                "refund_amount" => 0,
                "remark" => "",
                "order_logistics" => [
                    $order_logistic
                ],
                "risk_decision_description" => "",
                "aftersale_sub_type" => 0,
                "refund_tax_amount" => 0,
                "refund_post_amount" => 0,
                "exchange_sku_info" => [
                    "code" => "",
                    "out_warehouse_id" => "",
                    "sku_id" => "",
                    "num" => 0,
                    "name" => "",
                    "spec_desc" => "",
                    "out_sku_id" => "",
                    "supplier_id" => "",
                    "price" => "",
                    "url" => ""
                ],
                "apply_time" => time(),
                "return_logistics_code" => "",
                "exchange_logistics_company_name" => "",
                "got_pkg" => 1,
                "status_deadline" => 0,
                "return_logistics_company_name" => "",
                "risk_decision_code" => 0,
                "arbitrate_blame" => 0,
                "risk_decision_reason" => "",
                "store_name" => "",
                "part_type" => 0,
                "reason_second_labels" => [],
                "left_urge_sms_count" => 0,
                "refund_type" => 0,
                "arbitrate_status" => 0
            ],
            "order_info" => [
                "related_order_info" => [
                    $related_order_info
                ],
                "shop_order_id" => $this->orderSn,
                "order_flag" => 0
            ],
            "seller_logs" => [],
            "text_part" => [
                "return_logistics_text" => "已发货",
                "aftersale_type_text" => "退货退款",
                "bad_item_text" => "",
                "reason_text" => "与商家协商一致补发",
                "logistics_text" => "1/1已发货",
                "aftersale_status_text" => "同意退款，退款成功",
                "arbitrate_status_text" => "未介入",
                "aftersale_refund_type_text" => "原路退款"
            ]
        ];

        return [
            "code" => 10000,
            "sub_msg" => "",
            "log_id" => sprintf('%s%s', date('YmdHis', time()), Str::random(8)),
            "sub_code" => "",
            "msg" => "success",
            "data" => [
                "has_more" => false,
                "items" => [
//                    $item
                ],
                "total" => 0,
                "page" => 0,
                "size" => 0
            ]
        ];
    }

    protected function afterSale_Detail(Request $request)
    {
//        $string = '{"process_info":{"logistics_info":{"return":{"logistics_time":0,"tracking_no":"","company_name":"","company_code":""},"exchange":{"company_code":"","logistics_time":0,"tracking_no":"","company_name":""},"order":[]},"price_protection_detail":{"refund_detail":{"deduction_price_detail":[],"actual_amount":{},"origin_amount":{}},"refund_bearer_list":[],"title":"","price_protection_formulas":"","standard_price":{"origin_amount":{},"deduction_price_detail":[],"actual_amount":{}},"check_price":{"actual_amount":{},"origin_amount":{},"deduction_price_detail":[]}},"after_sale_info":{"reason_code":1,"post_address":{"landmark":"","street":{"name":"","id":""},"province":{"id":"","name":""},"city":{"id":"","name":""},"town":{"id":"","name":""},"encrypt_detail":""},"open_address_id":"","after_sale_id":147155312511965687,"after_sale_type":2,"status_deadline":0,"return_address_id":0,"kol_discount_return_amount":0,"real_refund_amount":6994,"encrypt_post_receiver":"","post_discount_return_status":0,"apply_time":1759042734,"evidence":[],"after_sale_type_text":"未发货退款","encrypt_post_tel_sec":"","disable_coupon_id":"0","refund_total_amount":6994,"reason_second_labels":[],"exchange_sku_info":{"code":"","name":"","url":"","price":"","out_warehouse_id":"","sku_id":"","out_sku_id":"","num":0,"spec_desc":"","supplier_id":""},"need_return_count":0,"after_sale_apply_count":1,"deduction_amount":0,"agree_refuse_sign":0,"after_sale_status":12,"kol_discount_return_status":1,"reason_remark":"","update_time":1759042736,"return_address":{"detail":"","province":{"id":"","name":""},"city":{"name":"","id":""},"town":{"name":"","id":""},"street":{"id":"","name":""},"landmark":""},"refund_type":2,"platform_discount_return_amount":999,"refund_post_amount":0,"reason":"多拍/错拍/不想要","refund_promotion_amount":0,"refund_type_text":"备用金","post_discount_return_amount":0,"refund_status":3,"after_sale_status_desc":"同意退款，退款成功","got_pkg":0,"aftersale_tags":[{"tag_link_url":"","placeholder":{},"tag_detail":"未发货退款","tag_detail_en":"after_sale_type","tag_detail_text":""}],"platform_discount_return_status":1},"arbitrate_info":{"arbitrate_status":0}},"order_info":{"shop_order_id":6921434904368742107,"sku_order_infos":[{"sku_order_id":6921434904368938715,"shop_sku_code":"6970967593430","product_image":"https://p3-aio.ecombdimg.com/obj/ecom-shop-material/jpeg_m_7a35e752790b74597685a24b8e59a957_sx_583223_www800-800","sku_spec":[{"value":"RGB补光灯","name":"规格名"}],"item_quantity":1,"pay_amount":6994,"given_sku_details":[],"after_sale_item_count":1,"product_name":"富士instax一次成像正品原装磁吸RGB补光灯适用instax mini Evo","sku_id":1767930166376495,"product_id":3620720996765563232}]}}';
////        $string = '{"process_info":{"after_sale_info":{"post_discount_return_status":0,"exchange_sku_info":{"url":"","price":"","sku_id":"","supplier_id":"","name":"","code":"","num":0,"out_warehouse_id":"","spec_desc":"","out_sku_id":""},"after_sale_status":12,"status_deadline":0,"need_return_count":0,"refund_promotion_amount":0,"post_address":{"city":{"id":"","name":""},"town":{"id":"","name":""},"encrypt_detail":"","landmark":"","street":{"name":"","id":""},"province":{"name":"","id":""}},"after_sale_type_text":"未发货退款","kol_discount_return_amount":0,"apply_time":1759042708,"refund_post_amount":0,"reason_code":14,"agree_refuse_sign":0,"platform_discount_return_amount":613,"aftersale_tags":[{"placeholder":{},"tag_detail":"未发货退款","tag_detail_en":"after_sale_type","tag_detail_text":"","tag_link_url":""}],"after_sale_type":2,"deduction_amount":0,"reason_second_labels":[],"encrypt_post_receiver":"","reason":"缺货","platform_discount_return_status":1,"refund_type":1,"after_sale_apply_count":1,"evidence":[],"after_sale_status_desc":"同意退款，退款成功","refund_type_text":"线下退款","reason_remark":"","real_refund_amount":4287,"after_sale_id":147155312415864697,"open_address_id":"","got_pkg":0,"refund_status":3,"return_address":{"town":{"id":"","name":""},"street":{"name":"","id":""},"landmark":"","detail":"","province":{"id":"","name":""},"city":{"id":"","name":""}},"post_discount_return_amount":0,"kol_discount_return_status":1,"disable_coupon_id":"0","update_time":1759042711,"encrypt_post_tel_sec":"","refund_total_amount":4287,"return_address_id":0},"arbitrate_info":{"arbitrate_status":0},"logistics_info":{"exchange":{"company_name":"","company_code":"","logistics_time":0,"tracking_no":""},"order":[],"return":{"company_code":"","logistics_time":0,"tracking_no":"","company_name":""}},"price_protection_detail":{"standard_price":{"actual_amount":{},"origin_amount":{},"deduction_price_detail":[]},"check_price":{"actual_amount":{},"origin_amount":{},"deduction_price_detail":[]},"refund_detail":{"deduction_price_detail":[],"actual_amount":{},"origin_amount":{}},"refund_bearer_list":[],"title":"","price_protection_formulas":""}},"order_info":{"shop_order_id":6921434904368742107,"sku_order_infos":[{"after_sale_item_count":1,"given_sku_details":[],"shop_sku_code":"6977665612661","item_quantity":1,"product_image":"https://p3-aio.ecombdimg.com/obj/ecom-shop-material/png_m_1a25712e18099dd2c1ba8f7978b5890d_sx_710865_www800-800","sku_spec":[{"value":"12色丙烯马克笔（组合产品 请勿单独购买）","name":"规格名"}],"sku_id":3533677603907586,"product_name":"富士INSTAX x Touchmark  12色丙烯马克笔 组合产品 请勿单拍","product_id":3769189878877782371,"pay_amount":4287,"sku_order_id":6921434904369397467}]}}';
//        return [
//            "code" => 10000,
//            "sub_msg" => "",
//            "log_id" => sprintf('%s%s', date('YmdHis', time()), Str::random(8)),
//            "sub_code" => "",
//            "msg" => "success",
//            "data" => json_decode($string, true),
//        ];


        $param_json = $request->get('param_json');
        $after_sale_id = json_decode($param_json, true)['after_sale_id'];

        // 换货、补寄时的收货四级地址. 退货地址
        $post_address = $return_address = [
            "province" => [
                "id" => "32",
                "name" => "浙江省"
            ],
            "city" => [
                "id" => "432",
                "name" => "杭州市"
            ],
            "town" => [
                "id" => "432",
                "name" => "西湖区"
            ],
            "street" => [
                "id" => "43",
                "name" => "解放路"
            ],
            "detail" => "新华书店门口左转一米",
            "landmark" => "",
        ];

        $post_address['encrypt_detail'] = "新华书店****左转一米"; // 地址详情，此字段已加密，使用前需要解密

        $sku_order_info = [
            "after_sale_item_count" => "1", // 商品单对应的售后数量
            "create_time" => time(),
            "given_sku_details" => [
                [
                    'sku_order_id' => 'SKUA00001',
                    'item_order_num' => 1,
                    'after_sale_item_count' => 1,
                    'product_name' => '111',
                    'pay_amount' => 0,
                ]
            ],
            "insurance_tags" => [],
            "is_oversea_order" => 0, // 是否为跨境业务 0：不是 1：是
            "order_status" => 4, // 订单状态
            "pay_type" => 1, // 支付方式 0 => 货到付款  1 => 在线支付
            "item_quantity" => $this->item_num, // 订单件数
            "item_sum_amount" => $this->item_sum_amount,
            "pay_amount" => $this->pay_amount, // 买家实付金额（分）
            "post_amount" => $this->post_amount, // 买家购买运费（分）
            "tax_amount" => $this->tax_amount, // 购买税费（分）
            "product_id" => $this->product_id, // 商品ID
            "product_image" => "商品图片链接",
            "product_name" => "耐克球鞋",
            "promotion_amount" => $this->promotion_amount,
            "shop_sku_code" => $this->shop_sku_code,
            "sku_id" => $this->sku_id, // skuID
            "sku_order_id" => $this->sku_order_id,
            "sku_pay_amount" => $this->sku_pay_amount, // 商品实际支付金额
            "sku_spec" => [],
            "tags" => [],
        ];

        $after_sale_info = [
            "open_address_id" => sprintf('securityKey_%s', date('Ymd')),
            "after_sale_apply_count" => "1",
            "after_sale_id" => $after_sale_id,
            "after_sale_order_type" => "1",
            "after_sale_status" => $this->aftersale_status,
            "after_sale_status_desc" => "售后申请",
            "after_sale_sub_type" => "8001", // 售后子类型：8001-以换代修
            "after_sale_type" => $this->aftersale_type,
            "after_sale_type_text" => "补寄",
            "aftersale_tags" => [],
            "apply_time" => time(),
            "deduction_amount" => 10000, // 平台需要回收的金额（分）
            "disable_coupon_id" => "12345", // 作废的券ID
            "encrypt_post_receiver" => "张**", // 密文 - 换货、补寄时的收货人名字
            "encrypt_post_tel_sec" => "187****8531", // 密文 - 换货、补寄时的收货人的联系电话
            "evidence" => '["http://p6-aftersale-sign.ecombdimg.com/douyin-user-image-file/869bed93812154773403174c5feae63c~tplv-51d71q3p2z-q75-jpeg.jpeg?x-expires=1676015949&x-signature=R%2Fbr7Gcl3s2Opfboss66qdY2CWc%3D"]',
            "exchange_sku_info" => [
                "code" => $this->exchangeSkuCode,
                "out_warehouse_id" => "lmt_storage",
                "sku_id" => $this->sku_id,
                "num" => $this->exchangeSkuQuantity,
                "name" => "测试商品A",
                "spec_desc" => "颜色:黄色",
                "out_sku_id" => "originalSKUA00001",
                "supplier_id" => "",
                "price" => $this->exchangeSkuPrice, // 换货商品的价格，单位分
                "url" => "" // 商品图片url
            ],
            "gold_coin_return_amount" => 0, // 退金币金额
            "got_pkg" => 0, // 买家是否收到货，0-表示未收到货；1-表示收到货
            "kol_discount_return_amount" => 0, // 达人优惠退回金额
            "kol_discount_return_status" => 0, // 达人优惠退回状态，枚举：0:待退补贴；1:退补贴成功；2:退补贴失败
            "need_return_count" => 0, // 用户需退回件数, 数值为用户申请售后件数 - 商家未发货件数
            "part_type" => 0, // 部分退状态，0为全额退款，1为部分退
            "platform_discount_return_amount" => 0, // 平台优惠退回金额
            "platform_discount_return_status" => 1, // 平台优惠退回状态，枚举：0:待退补贴；1:退补贴成功；2:退补贴失败
            "post_address" => $post_address, // 换货、补寄时的收货四级地址
            "post_discount_return_amount" => 0, // 运费优惠退回金额
            "post_discount_return_status" => "1", // 运费优惠退回状态，枚举：0:待退补贴；1:退补贴成功；2:退补贴失败
            "real_refund_amount" => 0, // 实际退款金额;单位：分
            "reason" => "无理由退款", // 申请原因
            "reason_code" => "2", // 原因码；通过【afterSale/rejectReasonCodeList】接口获取
            "reason_remark" => "不喜欢这件商品", // 申请描述
            "reason_second_labels" => [], // 用户申请售后选择的二级原因标签
            "refund_fail_reason" => "用户账户异常，平台处理中", // 退款失败文案
            "refund_packing_charge_amount" => 0, // 售后打包费退款金额,单位：分
            "refund_post_amount" => 0, // 售后运费
            "refund_promotion_amount" => 0, // 退款补贴总金额
            "refund_status" => $this->refund_status, // 退款状态;1-待退款;2-退款中;3-退款成功;4退款失败;5追缴成功;
            "refund_total_amount" => $this->refund_total_amount, // 售后总金额（含运费）
            "refund_type" => "无需退款", // 退款方式
            "refund_type_text" => "无需退款", // 退款方式文案
            "refund_voucher_num" => "1", // 卡券商品申请退款的张数
            "refund_voucher_times" => "3", // 多次券商品申请退款的次数
            "return_address" => $return_address, //
            "return_address_id" => "123123", // 退货地址ID
            "risk_decsison_code" => "1", // 物流异常风控编码
            "risk_decsison_description" => "退货物流可能存在异常，多个售后单物流单号一致，请仔细核对或与买家核实后尽快处理。", // 物流异常风控描述
            "risk_decsison_reason" => "多个售后单同一单号", // 物流异常风控理由
            "shop_discount_return_amount" => 0, // 商家优惠退回金额（包含供应商优惠退回金额）
            "status_deadline" => "1735660800", // 逾期时间
            "store_id" => $this->store_id,
            "store_name" => $this->store_name,
            "update_time" => time()
        ];

        return [
            "code" => 10000,
            "sub_msg" => "",
            "log_id" => sprintf('%s%s', date('YmdHis', time()), Str::random(8)),
            "sub_code" => "",
            "msg" => "success",
            "data" => [
                "order_info" => [
                    "shop_order_id" => $this->orderSn, // 店铺单ID
                    "sku_order_infos" => [
                        $sku_order_info
                    ]
                ],
                "process_info" => [
                    "after_sale_info" => $after_sale_info,
                    "after_sale_service_tag" => [], // 售后标签
                    "arbitrate_info" => [], // 仲裁信息
                    "logistics_info" => [ // 物流信息
                        "exchange" => [],
                        "order" => [],
                        "resend" => [],
                        "return" => [
                            'tracking_no' => 'SF12345678910',
                            'company_name' => '顺丰',
                            'company_code' => 'shunfeng',
                            'logistics_time' => 1735660800,
                        ]
                    ],
                    "after_sale_shop_remarks" => [], // 售后备注
                    "price_protection_detail" => [], // 价保详情
                    "record_logs_list" => [], // 协商记录
                ]
            ]
        ];
    }

    public function afterSale_rejectReasonCodeList()
    {
        $item = [
            "evidence_description" => "请提供发货物流进度截图",
            "evidence_need" => "Y", // 是否需要上传凭证，Y必填，N非必填
            "image" => "/obj/ecom-aftersale-image-example/vsfguUuWBsXzjgyexWJRoBUMVORQBnmvMQHBRFom.png",
            "order_type" => "-1",
            "pkg" => "-1",
            "reason" => "多拍/错拍/不想要",
            "reject_reason_code" => "1"
        ];

        $item3 = $item2 = $item;
        $item2['reason'] = '协商一致';
        $item2['reject_reason_code'] = 2;
        $item2['evidence_description'] = '请提供截图凭证';

        $item3['reason'] = '疫情原因……';
        $item3['reject_reason_code'] = 3;
        $item3['evidence_need'] = 'N';
        $item3['evidence_description'] = '';

        return [
            "code" => 10000,
            "sub_msg" => "",
            "log_id" => sprintf('%s%s', date('YmdHis', time()), Str::random(8)),
            "sub_code" => "",
            "msg" => "success",
            "data" => [
                "items" => [
                    $item, $item2, $item3
                ]
            ]
        ];
    }

    public function afterSale_operate(Request $request)
    {
        $param_json = json_decode($request->get('param_json', []), true);
        $items = $param_json['items'];
        $responseItems = [];
        foreach ($items as $item) {
            $responseItems[] = [
                "aftersale_id" => $item['aftersale_id'],
                "status_code" => 0,
                "status_msg" => 'success',
            ];
        }

        return [
            "code" => 10000,
            "sub_msg" => "",
            "log_id" => sprintf('%s%s', date('YmdHis', time()), Str::random(8)),
            "sub_code" => "",
            "msg" => "success",
            "data" => [
                "items" => $responseItems
            ]
        ];
    }

    public function logistics_getRecommendedAndDeliveryExpressByOrder(Request $request)
    {
        $paramJson = json_decode($request->get('param_json', []), true);

        $orderPrivilegeInfo = [
            "code" => "priority_delivery",
            "label" => "优先发货",
            "reason" => "用户负反馈率高"
        ];

        $expressInfo = [
            "express" => "zhongtong",
            "is_deliverable" => "true",
            "is_recommended" => "true",
            "is_shop_eBill" => "true",
            "rank_route" => "1",
            "undeliverable_reason" => "服务不可达",
            "ccr_Info" => [
                "ccr_rate" => "0.001",
                "level_percent" => "0.2",
                "optimized_percent" => "0.34"
            ],
            "collect_sign_info" => [
                "avg_cost_hours" => "60.10",
                "level_percent" => "23.86",
                "optimized_percent" => "6.1"
            ],
            "tail_Info" => [
                "level_percent" => "0.34",
                "optimized_percent" => "0.2",
                "tail_rate" => "0.001"
            ],
        ];

        $result = [];
        $orderInfoList = !empty($paramJson['order_info_list']) ? $paramJson['order_info_list'] : [];
        foreach ($orderInfoList as $item) {
            $order_id = $item['order_id'];
            $result[] = [
                'order_id' => $order_id,
                'order_privilege_info_list' => [$orderPrivilegeInfo],
                'express_info_list' => [
                    $expressInfo
                ],
            ];
        }

        return [
            "code" => 10000,
            "msg" => "success",
            "sub_msg" => "",
            "sub_code" => "",
            "data" => [
                "data" => $result
            ]
        ];
    }

    public function afterSale_fillLogistics()
    {
        return [
            "code" => 10000,
            "sub_msg" => "",
            "log_id" => sprintf('%s%s', date('YmdHis', time()), Str::random(8)),
            "sub_code" => "",
            "msg" => "success",
            "data" => [
            ]
        ];
    }

    // 一单多包发货接口
    public function order_logisticsAddMultiPack()
    {
        return [
            "code" => 10000,
            "sub_msg" => "",
            "sub_code" => "",
            "msg" => "success",
            "data" => [
            ]
        ];
    }

    // 订单发货接口(整单)
    public function order_logisticsAdd()
    {
        return [
            "code" => 10000,
            "sub_msg" => "",
            "sub_code" => "",
            "msg" => "success",
            "data" => [
            ]
        ];
    }

    // 订单详情
    public function order_orderDetail(Request $request)
    {
//        $string = '{"shop_order_detail":{"doudian_open_id":"1@#gnsBif4eLKPNtHGI5Bc7bQUbVEhLfQSfnocIwnjHOS04rdFYyq2Uk+eyrrY38yEbqbI=","main_status_desc":"备货中","order_status_desc":"待发货","post_addr":{"town":{"id":"320509","name":"吴江区"},"street":{"name":"江陵街道","id":"3205090040001"},"encrypt_detail":"##4F61wl3o+9Y4HOQOqPxANloPVnpQJe6pxG+PDRyYBzPtKIXFLIyZHdSioncOy8rj8NnXR/IGa7yHcfgHndggqxf4ffpVMP4d/49/qd3B60QstBp2+AHk*CgYIASAHKAESPgo8/jRejHfjQKGY1LI2R5Nit6+U50gVZukyhInE0nqEmdsWmWJqrScwtCIXuSPMLhheYMueMfe9WYU5TcslGgA=#1##","province":{"name":"江苏省","id":"32"},"city":{"id":"320500","name":"苏州市"}},"app_id":1128,"recommend_start_ship_time":0,"order_phase_list":[],"encrypt_post_receiver":"##q3BYvxAOQPOWpfT1OBfi3uKdQg9F4KKueWG3Y4dATuwog4tiGMvOBZPsBv5qBBE7mZGSOV03R4nfpwqW5WKkpUt9X+2j63vKVx38ekeSLAQ=*CgYIASAHKAESPgo8XfKbVOl2YQ39zUkfjjYRcyWTnmecZJaWjsgXz2FPe27w1u9PV7seRrSwE1/vqqVC7NIDe2yXAfpQxxQ+GgA=#1##","seller_words":"炫饭达人 缺货 [6365] 15780943942  同意替换其他相纸收纳盒【马庆林 09-28 14:58】","update_time":1759042736,"modify_amount":0,"author_cost_amount":0,"shop_id":59043053,"order_type_desc":"普通订单","seller_remark_stars":5,"pay_type":8,"cancel_reason":"","trade_type_desc":"普通","shop_cost_amount":1000,"only_platform_cost_amount":2500,"logistics_info":[],"buyer_words":"","b_type_desc":"抖音","promotion_shop_amount":1000,"target_arrival_time":0,"promotion_pay_amount":1000,"promise_detail":{"recommend_logistics_list":[],"promise_time_detail":{}},"order_expire_time":1800,"b_type":2,"serial_number_list":[],"aweme_id":"","user_tag_ui":[{"text":"高频购买","key":"user_profile_buy_frequency"},{"text":"店铺新客","key":"user_profile_shop_customer_type"}],"mask_post_addr":{"province":{"name":"江苏省","id":"32"},"city":{"name":"苏州市","id":"320500"},"town":{"name":"吴江区","id":"320509"},"street":{"name":"江陵街道","id":"3205090040001"},"detail":"******"},"platform_cost_amount":2500,"d_car_shop_biz_data":{"poi_addr":"","poi_tel":"","coupon_right":[],"poi_pname":"","poi_city_name":"","poi_adname":"","poi_id":"","poi_name":""},"main_status":2,"promotion_detail":{"platform_discount_detail":{"allowance_amount":0,"user_balance_amount":0,"redpack_amount":0,"full_discount_info":[],"gold_coin_amount":0,"full_discount_amount":0,"official_deduction_amount":0,"coupon_info":[{"coupon_type":3,"coupon_meta_id":"7550521393004347675","coupon_amount":2500,"coupon_name":"平台中秋消费券","share_discount_cost":{"author_cost":0,"platform_cost":2500,"shop_cost":0},"coupon_id":7554663142283428000}],"coupon_amount":2500,"redpack_info":[],"total_amount":2500},"kol_discount_detail":{"redpack_info":[],"total_amount":0,"coupon_amount":0,"full_discount_amount":0,"coupon_info":[],"full_discount_info":[],"redpack_amount":0},"shop_discount_detail":{"coupon_amount":1000,"full_discount_amount":0,"coupon_info":[{"coupon_id":7554680540910797000,"coupon_type":43,"coupon_meta_id":"7544476399822831923","coupon_amount":1000,"coupon_name":"专享券0831续期","share_discount_cost":{"shop_cost":1000,"author_cost":0,"platform_cost":0}}],"full_discount_info":[],"total_amount":1000}},"earliest_receipt_time":0,"total_promotion_amount":3500,"modify_post_amount":0,"user_nick_name":"","order_operate_record_list":[],"trade_type":0,"tax_amount_not_come_out":0,"post_amount":0,"promotion_amount":3500,"address_tag_ui":[],"receipt_date":"","biz_desc":"小店","sub_b_type":3,"order_id":"6921434904368742107","order_status":2,"order_tag111":{},"ship_time":0,"finish_time":0,"create_time":1758961198,"shop_name":"富士INSTAX打印机旗舰店","consolidate_info":{},"encrypt_post_tel":"$$+Cf/Wh0UNj+Vhk/rpLeMFN9Ij3tClUrcyrevXqeHBIsC+vGkrw55Y/rX92ioiCDl1hO4hG0e7FolRZStPuH/tyo5wr4RyyBm7Ju+nC85dtV5Fw==*CgYIASAHKAESPgo8LOmaUjeRKHY960WLI9km9luWeVnRoEBXly8H0Q6NlwQyGeWIW9iOEU78HAmswsFC649TU7eCbHY8ipNJGgA=$1$$","promotion_talent_amount":0,"post_promotion_amount":0,"open_address_id":"#a7USKCKBzmdGkPuUBcaKydcxsJeGogTJPGzI5V55ciss2Y729zW/J48lujIBJX3UUjV6rvEsT3psnf09Vr3CDY9sLFTH+heYxbpxfaJ6fzZq0rKATpT8TkOsMtrSYQqVLqB1WKQnXm4=","order_type":0,"order_amount":27200,"promotion_redpack_platform_amount":0,"mask_post_tel":"1**********","open_id":"","sku_order_list":[{"b_type":2,"out_product_id":"0","promotion_redpack_platform_amount":0,"product_id_str":"3757475409265033386","inventory_type_desc":"","video_id":"","trade_type":0,"finish_time":0,"modify_amount":0,"post_addr":{"encrypt_detail":"##eaBJr6LFlpVQcWGcg6F1+hdfeuSe7wKFquHLs7aJ84MW6Ss21GLC4QN178rz1+eFvSuIMkz8m6sx4yoA1h5uw11GOJJ113A/zIgWhWXxVymbxSZF4kAS*CgYIASAHKAESPgo8fmsko408gR5OM2ljrfTYl+UzHvFb0W5kzrmGV885lX5evFRQXTMplq7tCSP8FnG7by9jvgLHOEtbpF6aGgA=#1##","province":{"name":"江苏省","id":"32"},"city":{"id":"320500","name":"苏州市"},"town":{"name":"吴江区","id":"320509"},"street":{"name":"江陵街道","id":"3205090040001"}},"product_id":3757475409265033000,"order_amount":2000,"sku_id":3497090070356994,"promotion_pay_amount":0,"card_voucher":{"valid_start":0,"valid_end":0,"valid_days":0},"promotion_pay_amount_details":[{"share_cost":{"shop_cost":0,"platform_cost":0},"pay_promotion_type":""}],"cancel_reason":"","platform_cost_amount":250,"post_amount":0,"logistics_receipt_time":0,"ship_time":0,"channel_payment_no":"2105012509270601071450256186","sku_car_model_desc":"","sku_period_purchase_info":{},"promotion_redpack_talent_amount":0,"origin_id":"","biz_desc":"小店","theme_type":"0","page_id":0,"relation_order":{"relation_order_id":"","write_off_no":""},"given_exp_ship_time_desc":"","code":"","second_cid":21663,"pay_type":8,"inventory_list":[{"warehouse_type":0,"warehouse_name":"","warehouse_id":"","out_warehouse_id":"","inventory_type":1,"inventory_type_desc":"普通库存","count":1}],"order_expire_time":1800,"exp_ship_time":1759134001,"sku_order_tag_ui":[{"sort":0,"extra":"","key":"delay_send_pay_money","text":"晚发即赔","hover_text":"","tag_type":"","help_doc":"https://school.jinritemai.com/doudian/web/article/aHwH9wK4Je2N"},{"key":"supply_7day_return_label","text":"7天","hover_text":"","tag_type":"","help_doc":"https://school.jinritemai.com/doudian/web/article/101835?from=shop_article","sort":0,"extra":""},{"key":"quick_refund_label","text":"极速退","hover_text":"","tag_type":"","help_doc":"https://school.jinritemai.com/doudian/web/article/101792?from=shop_article","sort":0,"extra":""},{"help_doc":"","sort":0,"extra":"","key":"c_biz_self_sell","text":"小店自卖","hover_text":"达人通过「我的店铺」、或通过链接添加人店一体店铺商品（无官方店铺情况下，添加渠道号店铺商品也算）到橱窗、视频、直播，产生的订单为自卖订单","tag_type":"grey"},{"extra":"","key":"compass_source_not_ad_mark","text":"非广告","hover_text":"该订单通过自然流量成交","tag_type":"grey","help_doc":"","sort":0},{"sort":0,"extra":"{\"compass_first_level_entrance\":\"store\",\"compass_first_level_entrance_text\":\"店铺页面\"}","key":"compass_source_content_type_product_card","text":"商品卡","hover_text":"该订单通过商品卡方式成交，2023/3/1起创建的订单，将于第二天更新。更多流量来源请在订单导出明细查看","tag_type":"grey","help_doc":""}],"sku_customization_info":[],"given_exp_ship_time":0,"author_name":"","need_serial_number":false,"fourth_cid":0,"room_id":0,"campaign_info":[{"campaign_name":"2025年抖音商城中秋-立减直降","campaign_amount":0,"campaign_sub_type":1,"campaign_id":7547580654310359000,"campaign_type":7,"share_discount_cost":{"platform_cost":0,"shop_cost":0,"author_cost":0,"third_platform_cost":0}}],"order_level":3,"sku_yun_warehouse_info":[],"pre_sale_type":0,"c_biz_desc":"小店自卖","is_comment":0,"reduce_stock_type_desc":"下单减库存","create_time":1758961198,"has_tax":false,"main_status_desc":"备货中","sub_b_type":3,"parent_order_id":"6921434904368742107","order_type":0,"promotion_detail":{"shop_discount_detail":{"total_amount":0,"coupon_amount":0,"full_discount_amount":0,"coupon_info":[],"full_discount_info":[]},"platform_discount_detail":{"redpack_info":[],"redpack_amount":0,"allowance_amount":0,"total_amount":250,"coupon_amount":250,"gold_coin_amount":0,"full_discount_info":[],"full_discount_amount":0,"coupon_info":[{"coupon_id":7554663142283428000,"coupon_type":3,"coupon_meta_id":"7550521393004347675","coupon_amount":250,"coupon_name":"平台中秋消费券","share_discount_cost":{"shop_cost":0,"author_cost":0,"platform_cost":250}}],"official_deduction_amount":0,"user_balance_amount":0},"kol_discount_detail":{"full_discount_amount":0,"coupon_info":[],"full_discount_info":[],"redpack_amount":0,"redpack_info":[],"total_amount":0,"coupon_amount":0}},"product_pic":"https://p3-aio.ecombdimg.com/obj/ecom-shop-material/jpeg_m_2f3cdfccd7f5cac9728d6765bee99c6f_sx_126352_www800-800","send_pay":0,"account_list":{"account_info":[]},"pay_time":1758961200,"source_platform":"","out_warehouse_ids":[],"update_time":1758961202,"origin_amount":2000,"order_type_desc":"普通订单","room_id_str":"0","c_biz":8,"sub_b_type_desc":"H5","spec":[{"name":"套餐","value":"花样青春系列 相纸DIY套装"}],"order_status":2,"theme_type_desc":"-","supplier_id":"","serial_no_info":{"serial_no_list":[]},"encrypt_post_receiver":"##IhI/ygtf+GHKCvVWa3Pjeavu3JFb/i4W9HEeAs+amQI/Y3GQ8B+M+Ua8kB39jfgcYVzcGtLedhtLEUxbcDL81KBSmF8Uk3iJsqZCLvpliCc=*CgYIASAHKAESPgo8LwwJcGx71Ob8rlDkdoIM3UjXJc8pLRRRCi3nwpD4xiq/xT2hZqcCrT9yxy+heYrql/+nebxsBk1DpntcGgA=#1##","content_id":"0","encrypt_post_tel":"$$5Qd3qPrVWJn+SWFCm6+7W2t9ETpK351tIW5FDxmbpOe4JwbR9YjRnNxFDguAMkkJm7vL2yyHJSdkmR/wA71x2v13OQsUH9kEKFy/m0g6D7tUUA==*CgYIASAHKAESPgo86nhf9FbSbEfAEeFF6sAmbh4afwzSbTQf/nuCHUj35HG0YmnNF7gyppOuW0ZC9QMLbi8RjvNgVEE4nVecGgA=$1$$","promotion_amount":250,"inventory_type":"","third_cid":0,"promotion_platform_amount":250,"promotion_talent_amount":0,"ad_env_type":"","after_sale_info":{"after_sale_status":0,"after_sale_type":0,"refund_status":0},"warehouse_ids":[],"sum_amount":2000,"author_id":0,"pay_amount":1750,"writeoff_info":[],"post_insurance_amount":0,"gov_subsidy_detail111":{},"receive_type":0,"first_cid":20102,"promotion_redpack_amount":0,"order_status_desc":"待发货","reduce_stock_type":1,"bundle_sku_info":[],"goods_type":0,"modify_post_amount":0,"app_id":1128,"given_product_type":"","order_id":"6921434904368742107","out_sku_id":"","product_channel_info":{"product_channel_type":0,"product_channel_id":""},"goods_price":2000,"product_name":"富士instax一次成像正品原装花样青春系列 相纸DIY套装","send_pay_desc":"-","biz":2,"item_num":1,"main_status":2,"confirm_receipt_time":0,"b_type_desc":"抖音","shop_cost_amount":0,"master_sku_order_id":"","promotion_shop_amount":0,"sku_cargo_future_stock":{"supply_sku_snapshots":[{"batch_detail":[{"arrive_time":0,"arrive_time_type":0,"inventory_type":0,"batch_id":0,"stock_num":1}],"inventory_type":0}]},"trade_type_desc":"普通","cid":0,"appointment_ship_time":0},{"reduce_stock_type":1,"video_id":"","pay_time":1758961200,"order_type_desc":"普通订单","product_channel_info":{"product_channel_type":0,"product_channel_id":""},"pay_amount":1000,"sub_b_type":3,"promotion_talent_amount":0,"order_status":2,"content_id":"0","source_platform":"","theme_type_desc":"-","product_pic":"https://p3-aio.ecombdimg.com/obj/ecom-shop-material/jpeg_m_333946b0afceb5331e78b12150cf5cac_sx_704223_www800-800","parent_order_id":"6921434904368742107","product_id":3755981052770910700,"shop_cost_amount":0,"after_sale_info":{"refund_status":0,"after_sale_status":0,"after_sale_type":0},"promotion_platform_amount":0,"given_exp_ship_time_desc":"","order_type":0,"account_list":{"account_info":[]},"sku_yun_warehouse_info":[],"sku_period_purchase_info":{},"order_expire_time":1800,"biz":2,"confirm_receipt_time":0,"author_id":0,"ship_time":0,"sku_order_tag_ui":[{"text":"晚发即赔","hover_text":"","tag_type":"","help_doc":"https://school.jinritemai.com/doudian/web/article/aHwH9wK4Je2N","sort":0,"extra":"","key":"delay_send_pay_money"},{"sort":0,"extra":"","key":"supply_7day_return_label","text":"7天","hover_text":"","tag_type":"","help_doc":"https://school.jinritemai.com/doudian/web/article/101835?from=shop_article"},{"tag_type":"","help_doc":"https://school.jinritemai.com/doudian/web/article/101792?from=shop_article","sort":0,"extra":"","key":"quick_refund_label","text":"极速退","hover_text":""},{"extra":"","key":"c_biz_self_sell","text":"小店自卖","hover_text":"达人通过「我的店铺」、或通过链接添加人店一体店铺商品（无官方店铺情况下，添加渠道号店铺商品也算）到橱窗、视频、直播，产生的订单为自卖订单","tag_type":"grey","help_doc":"","sort":0},{"sort":0,"extra":"","key":"compass_source_not_ad_mark","text":"非广告","hover_text":"该订单通过自然流量成交","tag_type":"grey","help_doc":""},{"hover_text":"该订单通过商品卡方式成交，2023/3/1起创建的订单，将于第二天更新。更多流量来源请在订单导出明细查看","tag_type":"grey","help_doc":"","sort":0,"extra":"{\"compass_first_level_entrance_text\":\"店铺页面\",\"compass_first_level_entrance\":\"store\"}","key":"compass_source_content_type_product_card","text":"商品卡"}],"send_pay_desc":"-","sku_customization_info":[],"post_addr":{"encrypt_detail":"##QQ2/97hbSeswwDnyyhQGZKXFMnDZFwsAMjRhvIoAJUmIi+hGMwYqeVMUy2Oemv4QGWYsqxWmB01O/pdl4sJTL0gQk+2XPcxpfnVBsQrl6dIxbLjmosUB*CgYIASAHKAESPgo86ogv+q/zCK6JRZPW0bmtJSwlYjs3QSFh/rxx/w4cB4BYdOzcUoFFgnkC5Kqu/FugoOQThJ8pOLC8QA99GgA=#1##","province":{"name":"江苏省","id":"32"},"city":{"id":"320500","name":"苏州市"},"town":{"name":"吴江区","id":"320509"},"street":{"name":"江陵街道","id":"3205090040001"}},"logistics_receipt_time":0,"serial_no_info":{"serial_no_list":[]},"out_product_id":"0","channel_payment_no":"2105012509270601071450256186","gov_subsidy_detail111":{},"first_cid":20102,"inventory_type_desc":"","supplier_id":"","c_biz_desc":"小店自卖","need_serial_number":false,"goods_type":0,"promotion_redpack_amount":0,"goods_price":1000,"app_id":1128,"writeoff_info":[],"card_voucher":{"valid_start":0,"valid_end":0,"valid_days":0},"encrypt_post_receiver":"##0huSC8sFqfn28XBszXiPUMNbg0pkQsNrdKWqlzZuBL2Cloj6vb7PXUHmucQcvh3tE030AOrkUi+IhRWnZyLGiZ5/enAmmfi7neVENlVuAXg=*CgYIASAHKAESPgo8/ZIDko5ZkAEIPqqsyT6gXnAf9a8JDotfn2th6ncLPUEruFlYG4UQsjJYhf9qiUXMRVUPreF3gyCUkQtwGgA=#1##","cid":0,"promotion_detail":{"kol_discount_detail":{"coupon_amount":0,"full_discount_amount":0,"coupon_info":[],"full_discount_info":[],"redpack_amount":0,"redpack_info":[],"total_amount":0},"shop_discount_detail":{"full_discount_info":[],"total_amount":0,"coupon_amount":0,"full_discount_amount":0,"coupon_info":[]},"platform_discount_detail":{"coupon_amount":0,"allowance_amount":0,"full_discount_amount":0,"redpack_amount":0,"coupon_info":[],"redpack_info":[],"gold_coin_amount":0,"official_deduction_amount":0,"full_discount_info":[],"user_balance_amount":0,"total_amount":0}},"promotion_redpack_talent_amount":0,"sku_car_model_desc":"","reduce_stock_type_desc":"下单减库存","trade_type_desc":"普通","origin_id":"","author_name":"","pre_sale_type":0,"modify_amount":0,"given_product_type":"","b_type":2,"promotion_pay_amount_details":[{"pay_promotion_type":"","share_cost":{"shop_cost":0,"platform_cost":0}}],"relation_order":{"write_off_no":"","relation_order_id":""},"origin_amount":1000,"c_biz":8,"code":"6977665611909","main_status_desc":"备货中","has_tax":false,"product_id_str":"3755981052770910510","third_cid":0,"sku_cargo_future_stock":{"supply_sku_snapshots":[{"batch_detail":[{"stock_num":1,"arrive_time":0,"arrive_time_type":0,"inventory_type":0,"batch_id":0}],"inventory_type":0}]},"order_amount":1000,"create_time":1758961198,"main_status":2,"order_id":"6921434904368807643","product_name":"富士instax一次成像正品原装春意相纸边框贴","theme_type":"0","finish_time":0,"ad_env_type":"","item_num":1,"post_insurance_amount":0,"out_warehouse_ids":[],"warehouse_ids":[],"out_sku_id":"","pay_type":8,"is_comment":0,"biz_desc":"小店","promotion_amount":0,"page_id":0,"given_exp_ship_time":0,"modify_post_amount":0,"promotion_pay_amount":0,"promotion_redpack_platform_amount":0,"trade_type":0,"campaign_info":[],"post_amount":0,"inventory_type":"","exp_ship_time":1759134001,"order_status_desc":"待发货","bundle_sku_info":[],"room_id_str":"0","sub_b_type_desc":"H5","send_pay":0,"update_time":1758961202,"master_sku_order_id":"","sum_amount":1000,"fourth_cid":0,"cancel_reason":"","appointment_ship_time":0,"spec":[{"value":"春意相纸边框贴","name":"规格名"}],"inventory_list":[{"inventory_type_desc":"普通库存","count":1,"warehouse_type":0,"warehouse_name":"","warehouse_id":"","out_warehouse_id":"","inventory_type":1}],"second_cid":21663,"promotion_shop_amount":0,"room_id":0,"encrypt_post_tel":"$$76QNeywZfXG68RbVHcqpTEqe6jjTSt6IA1eOQQrNPvV/+tyUVNkaZ5fUZfHugYX2pCe9nOKc6AXCUtPPQFNQ+OFBX6UWR1r/Ycx35KLaQmuXWQ==*CgYIASAHKAESPgo8kQJ5VTD40oMC71jTHfp5+NV6nnUdkcv15rRe6HwhFRHm33HF/+UH5nMRShP+XOFDbm1LKuP8y25A+43kGgA=$1$$","order_level":3,"receive_type":0,"platform_cost_amount":0,"sku_id":3493220669315330,"b_type_desc":"抖音"},{"page_id":0,"is_comment":0,"modify_amount":0,"send_pay_desc":"-","c_biz_desc":"小店自卖","encrypt_post_tel":"$$bgtIoofGHSwr50OBhzgIGwIgfaBC6B2o2LQ/j8IW1FJuc3T2151wK17f+YLD7VHWz9GmdPBDoNbQPO1kxCxDeqPVK8bfPo59DYdyGS28RtKWHQ==*CgYIASAHKAESPgo8AOiJDfEh1BLno+aZ7U5u2rqvrQjDQ3ncOv9tc/nEGx/Yu9uAiPhqHsO2fQr0UsTb+JJSHxh8aKEFT40fGgA=$1$$","sub_b_type":3,"room_id":0,"inventory_type_desc":"","trade_type":0,"order_type":0,"room_id_str":"0","inventory_type":"","source_platform":"","given_exp_ship_time":0,"video_id":"","order_expire_time":1800,"product_pic":"https://p3-aio.ecombdimg.com/obj/ecom-shop-material/LmFiCYZh_m_837e63d9425a8430771d63302a097027_sx_226109_www800-800","goods_type":0,"order_status":2,"card_voucher":{"valid_start":0,"valid_end":0,"valid_days":0},"confirm_receipt_time":0,"gov_subsidy_detail111":{},"receive_type":0,"cid":0,"origin_id":"","ship_time":0,"author_name":"","promotion_redpack_amount":0,"b_type_desc":"抖音","order_type_desc":"普通订单","b_type":2,"item_num":1,"encrypt_post_receiver":"##lycJ095IHt7B+XDQ3iJIp/gpeyIJ5LzIptdgwb7qGXikXMC+yx9KLVxS5oZxymjRMDOifHZCNTylQBv/7pkZ1Waqp0nJq/t2eLkbbpl0U80=*CgYIASAHKAESPgo8JOcgl/hsAh1pMjQd6iQbDF7Wuzr8SCy26RL/U1HCJUSEJ4TLConxqUqtDbFEIVwj4TpYV3p+XzLxNEBBGgA=#1##","logistics_receipt_time":0,"biz":2,"promotion_detail":{"kol_discount_detail":{"full_discount_info":[],"redpack_amount":0,"redpack_info":[],"total_amount":0,"coupon_amount":0,"full_discount_amount":0,"coupon_info":[]},"shop_discount_detail":{"coupon_info":[{"coupon_id":7554680540910797000,"coupon_type":43,"coupon_meta_id":"7544476399822831923","coupon_amount":100,"coupon_name":"专享券0831续期","share_discount_cost":{"author_cost":0,"platform_cost":0,"shop_cost":100}}],"full_discount_info":[],"total_amount":100,"coupon_amount":100,"full_discount_amount":0},"platform_discount_detail":{"gold_coin_amount":0,"redpack_info":[],"user_balance_amount":0,"coupon_info":[{"coupon_meta_id":"7550521393004347675","coupon_amount":125,"coupon_name":"平台中秋消费券","share_discount_cost":{"author_cost":0,"platform_cost":125,"shop_cost":0},"coupon_id":7554663142283428000,"coupon_type":3}],"official_deduction_amount":0,"redpack_amount":0,"coupon_amount":125,"full_discount_info":[],"total_amount":125,"allowance_amount":0,"full_discount_amount":0}},"app_id":1128,"warehouse_ids":[],"reduce_stock_type_desc":"下单减库存","create_time":1758961198,"author_id":0,"promotion_platform_amount":125,"product_name":"富士instax一次成像正品原装迷你相纸收纳盒奶酪鼠鼠&炫饭达人","after_sale_info":{"refund_status":0,"after_sale_status":0,"after_sale_type":0},"has_tax":false,"third_cid":22252,"sku_period_purchase_info":{},"biz_desc":"小店","ad_env_type":"","parent_order_id":"6921434904368742107","promotion_redpack_talent_amount":0,"fourth_cid":0,"origin_amount":1100,"sku_cargo_future_stock":{"supply_sku_snapshots":[{"batch_detail":[{"arrive_time_type":0,"inventory_type":0,"batch_id":0,"stock_num":1,"arrive_time":0}],"inventory_type":0}]},"exp_ship_time":1759134001,"product_channel_info":{"product_channel_id":"","product_channel_type":0},"post_amount":0,"main_status_desc":"备货中","product_id":3688709583456568000,"platform_cost_amount":125,"sum_amount":1100,"out_sku_id":"","order_amount":1100,"update_time":1758961202,"account_list":{"account_info":[]},"master_sku_order_id":"","out_product_id":"0","first_cid":20000,"content_id":"0","modify_post_amount":0,"promotion_shop_amount":100,"channel_payment_no":"2105012509270601071450256186","promotion_talent_amount":0,"order_level":3,"writeoff_info":[],"send_pay":0,"sku_car_model_desc":"","sub_b_type_desc":"H5","supplier_id":"","need_serial_number":true,"promotion_pay_amount_details":[{"pay_promotion_type":"","share_cost":{"shop_cost":0,"platform_cost":0}}],"promotion_redpack_platform_amount":0,"relation_order":{"write_off_no":"","relation_order_id":""},"theme_type_desc":"-","inventory_list":[{"inventory_type":1,"inventory_type_desc":"普通库存","count":1,"warehouse_type":0,"warehouse_name":"","warehouse_id":"","out_warehouse_id":""}],"main_status":2,"promotion_amount":225,"serial_no_info":{"serial_no_list":[]},"promotion_pay_amount":0,"bundle_sku_info":[],"pre_sale_type":0,"appointment_ship_time":0,"theme_type":"0","out_warehouse_ids":[],"spec":[{"name":"规格名","value":"炫饭达人"}],"pay_amount":875,"cancel_reason":"","c_biz":8,"goods_price":1100,"finish_time":0,"reduce_stock_type":1,"shop_cost_amount":100,"second_cid":20140,"sku_id":3406377094485506,"sku_yun_warehouse_info":[],"pay_time":1758961200,"pay_type":8,"trade_type_desc":"普通","given_exp_ship_time_desc":"","post_insurance_amount":0,"product_id_str":"3688709583456567686","given_product_type":"","sku_customization_info":[],"code":"","sku_order_tag_ui":[{"hover_text":"","tag_type":"","help_doc":"https://school.jinritemai.com/doudian/web/article/aHwH9wK4Je2N","sort":0,"extra":"","key":"delay_send_pay_money","text":"晚发即赔"},{"key":"supply_7day_return_label","text":"7天","hover_text":"","tag_type":"","help_doc":"https://school.jinritemai.com/doudian/web/article/101835?from=shop_article","sort":0,"extra":""},{"sort":0,"extra":"","key":"quick_refund_label","text":"极速退","hover_text":"","tag_type":"","help_doc":"https://school.jinritemai.com/doudian/web/article/101792?from=shop_article"},{"hover_text":"达人通过「我的店铺」、或通过链接添加人店一体店铺商品（无官方店铺情况下，添加渠道号店铺商品也算）到橱窗、视频、直播，产生的订单为自卖订单","tag_type":"grey","help_doc":"","sort":0,"extra":"","key":"c_biz_self_sell","text":"小店自卖"},{"sort":0,"extra":"","key":"compass_source_not_ad_mark","text":"非广告","hover_text":"该订单通过自然流量成交","tag_type":"grey","help_doc":""},{"key":"compass_source_content_type_product_card","text":"商品卡","hover_text":"该订单通过商品卡方式成交，2023/3/1起创建的订单，将于第二天更新。更多流量来源请在订单导出明细查看","tag_type":"grey","help_doc":"","sort":0,"extra":"{\"compass_first_level_entrance\":\"store\",\"compass_first_level_entrance_text\":\"店铺页面\"}"}],"order_id":"6921434904368873179","post_addr":{"city":{"id":"320500","name":"苏州市"},"town":{"name":"吴江区","id":"320509"},"street":{"name":"江陵街道","id":"3205090040001"},"encrypt_detail":"##X1MFFwpEH5pR5uTjYpzY6tcPpiO4q1Sl9s425O6RCy02hrrG6INWprDLdbgMnjgEMI9NkP0VY1Ufkbbmz2t2gf5HMDoLusi2HRi741qumpBFM0vLpcoj*CgYIASAHKAESPgo8Dv/X+7iO9YCRqaQf6bZzWc92p1wxWY+Zqh92iqhsv2xqSLJ/O7QRycO5PWaROxj0E4/ufLCrBcmw9yepGgA=#1##","province":{"name":"江苏省","id":"32"}},"order_status_desc":"待发货","campaign_info":[]},{"b_type_desc":"抖音","given_exp_ship_time_desc":"","inventory_list":[{"inventory_type_desc":"普通库存","count":1,"warehouse_type":0,"warehouse_name":"","warehouse_id":"","out_warehouse_id":"","inventory_type":1}],"ship_time":0,"origin_id":"","biz":2,"product_id_str":"3620720996765563232","order_amount":8800,"ad_env_type":"","sku_id":1767930166376495,"room_id":0,"out_product_id":"0","product_id":3620720996765563400,"exp_ship_time":1759134001,"content_id":"0","modify_post_amount":0,"reduce_stock_type":1,"has_tax":false,"channel_payment_no":"2105012509270601071450256186","modify_amount":0,"theme_type_desc":"-","promotion_detail":{"platform_discount_detail":{"user_balance_amount":0,"total_amount":999,"gold_coin_amount":0,"full_discount_amount":0,"redpack_amount":0,"coupon_info":[{"coupon_name":"平台中秋消费券","share_discount_cost":{"shop_cost":0,"author_cost":0,"platform_cost":999},"coupon_id":7554663142283428000,"coupon_type":3,"coupon_meta_id":"7550521393004347675","coupon_amount":999}],"official_deduction_amount":0,"allowance_amount":0,"coupon_amount":999,"full_discount_info":[],"redpack_info":[]},"kol_discount_detail":{"redpack_amount":0,"redpack_info":[],"total_amount":0,"coupon_amount":0,"full_discount_amount":0,"coupon_info":[],"full_discount_info":[]},"shop_discount_detail":{"total_amount":807,"coupon_amount":807,"full_discount_amount":0,"coupon_info":[{"share_discount_cost":{"author_cost":0,"platform_cost":0,"shop_cost":807},"coupon_id":7554680540910797000,"coupon_type":43,"coupon_meta_id":"7544476399822831923","coupon_amount":807,"coupon_name":"专享券0831续期"}],"full_discount_info":[]}},"writeoff_info":[],"is_comment":0,"product_name":"富士instax一次成像正品原装磁吸RGB补光灯适用instax mini Evo","supplier_id":"","relation_order":{"relation_order_id":"","write_off_no":""},"sku_period_purchase_info":{},"order_type":0,"room_id_str":"0","app_id":1128,"b_type":2,"promotion_talent_amount":0,"inventory_type":"","promotion_pay_amount":0,"promotion_platform_amount":999,"master_sku_order_id":"","sku_yun_warehouse_info":[],"post_amount":0,"warehouse_ids":[],"spec":[{"value":"RGB补光灯","name":"规格名"}],"page_id":0,"author_name":"","cid":0,"need_serial_number":false,"sku_car_model_desc":"","pay_type":8,"encrypt_post_receiver":"##+1mPXZ54FbomEXQ5reSylpGyPl7PZdgCfwTb+ZA+C4vrnTDIGAqzRJXG9j3AhOX3I7JIKsR9YPYOCKyVXXQxk+Brd7P3urRupPOXTaJ10Gk=*CgYIASAHKAESPgo8N5I3un0k7YirkjuZehX7MkA570Brc3yzMvWzc5RTh/4rXmwbfYU25bhwuwm2Z6BZfNbUoKvVtUEyR7CDGgA=#1##","send_pay_desc":"-","logistics_receipt_time":0,"promotion_amount":1806,"sub_b_type_desc":"H5","platform_cost_amount":999,"receive_type":0,"send_pay":0,"third_cid":0,"sku_cargo_future_stock":{"supply_sku_snapshots":[{"batch_detail":[{"arrive_time_type":0,"inventory_type":0,"batch_id":0,"stock_num":1,"arrive_time":0}],"inventory_type":0}]},"goods_price":8800,"sum_amount":8800,"post_insurance_amount":0,"reduce_stock_type_desc":"下单减库存","sku_customization_info":[],"create_time":1758961198,"biz_desc":"小店","promotion_redpack_platform_amount":0,"post_addr":{"town":{"id":"320509","name":"吴江区"},"street":{"name":"江陵街道","id":"3205090040001"},"encrypt_detail":"##n4MVTOXfRjs58Sct1YcYbZP97cVagKXrUZdYIJ5vcVMYHklOy6sChYlwXwh1yb5+7WzllDdmY70Z4xgzUQ7BOwkv1lCfYkOHTVXrcJ7pmuBkilMhb0ei*CgYIASAHKAESPgo8whLkrg0ipj73KxSOW2u40RvDWUNXA1P2J1a6TnXjsYUdYzFvi2tdxmSlwWoxQxv3zi4dbQgXVrxdeO2wGgA=#1##","province":{"name":"江苏省","id":"32"},"city":{"id":"320500","name":"苏州市"}},"order_type_desc":"普通订单","out_warehouse_ids":[],"promotion_shop_amount":807,"first_cid":20102,"shop_cost_amount":807,"update_time":1759042736,"theme_type":"0","c_biz_desc":"小店自卖","order_expire_time":1800,"campaign_info":[{"campaign_type":7,"share_discount_cost":{"third_platform_cost":0,"platform_cost":0,"shop_cost":0,"author_cost":0},"campaign_name":"2025年抖音商城中秋-立减直降","campaign_amount":0,"campaign_sub_type":1,"campaign_id":7547580654310359000}],"promotion_pay_amount_details":[{"pay_promotion_type":"","share_cost":{"shop_cost":0,"platform_cost":0}}],"second_cid":21663,"confirm_receipt_time":0,"card_voucher":{"valid_start":0,"valid_end":0,"valid_days":0},"parent_order_id":"6921434904368742107","after_sale_info":{"after_sale_status":12,"after_sale_type":2,"refund_status":3},"goods_type":0,"gov_subsidy_detail111":{},"order_status":4,"pre_sale_type":0,"video_id":"","appointment_ship_time":0,"author_id":0,"trade_type_desc":"普通","promotion_redpack_amount":0,"pay_amount":6994,"account_list":{"account_info":[]},"c_biz":8,"given_exp_ship_time":0,"product_channel_info":{"product_channel_id":"","product_channel_type":0},"code":"6970967593430","finish_time":0,"serial_no_info":{"serial_no_list":[]},"fourth_cid":0,"item_num":1,"given_product_type":"","order_id":"6921434904368938715","order_status_desc":"已关闭","sku_order_tag_ui":[{"tag_type":"","help_doc":"https://school.jinritemai.com/doudian/web/article/aHwH9wK4Je2N","sort":0,"extra":"","key":"delay_send_pay_money","text":"晚发即赔","hover_text":""},{"tag_type":"","help_doc":"https://school.jinritemai.com/doudian/web/article/101835?from=shop_article","sort":0,"extra":"","key":"supply_7day_return_label","text":"7天","hover_text":""},{"hover_text":"","tag_type":"","help_doc":"https://school.jinritemai.com/doudian/web/article/101792?from=shop_article","sort":0,"extra":"","key":"quick_refund_label","text":"极速退"},{"hover_text":"达人通过「我的店铺」、或通过链接添加人店一体店铺商品（无官方店铺情况下，添加渠道号店铺商品也算）到橱窗、视频、直播，产生的订单为自卖订单","tag_type":"grey","help_doc":"","sort":0,"extra":"","key":"c_biz_self_sell","text":"小店自卖"},{"key":"compass_source_not_ad_mark","text":"非广告","hover_text":"该订单通过自然流量成交","tag_type":"grey","help_doc":"","sort":0,"extra":""},{"text":"商品卡","hover_text":"该订单通过商品卡方式成交，2023/3/1起创建的订单，将于第二天更新。更多流量来源请在订单导出明细查看","tag_type":"grey","help_doc":"","sort":0,"extra":"{\"compass_first_level_entrance\":\"store\",\"compass_first_level_entrance_text\":\"店铺页面\"}","key":"compass_source_content_type_product_card"}],"pay_time":1758961200,"origin_amount":8800,"out_sku_id":"","inventory_type_desc":"","trade_type":0,"bundle_sku_info":[],"source_platform":"","encrypt_post_tel":"$$FZP+cUoCW14sehf93Xejdutf6BDUpBUXYAj/hmnPk0EVau50vLOYUva/8n9CtOu0thToSm0R7pVDkCtDt/9DhL/IgQ+cbCfFqk9XZeRwDn3nDw==*CgYIASAHKAESPgo8fdXO10WioUfW3DevCKXwaTv17XcwrV95hyEfs6XXQw3hIu/+DTyLl0UvX9GV0imsZ0ukNi53pJlIUaofGgA=$1$$","main_status":21,"order_level":3,"cancel_reason":"","sub_b_type":3,"promotion_redpack_talent_amount":0,"product_pic":"https://p3-aio.ecombdimg.com/obj/ecom-shop-material/jpeg_m_7a35e752790b74597685a24b8e59a957_sx_583223_www800-800","main_status_desc":"发货前退款完成"},{"reduce_stock_type_desc":"下单减库存","reduce_stock_type":1,"sku_order_tag_ui":[{"key":"delay_send_pay_money","text":"晚发即赔","hover_text":"","tag_type":"","help_doc":"https://school.jinritemai.com/doudian/web/article/aHwH9wK4Je2N","sort":0,"extra":""},{"key":"supply_7day_return_label","text":"7天","hover_text":"","tag_type":"","help_doc":"https://school.jinritemai.com/doudian/web/article/101835?from=shop_article","sort":0,"extra":""},{"help_doc":"https://school.jinritemai.com/doudian/web/article/101792?from=shop_article","sort":0,"extra":"","key":"quick_refund_label","text":"极速退","hover_text":"","tag_type":""},{"hover_text":"达人通过「我的店铺」、或通过链接添加人店一体店铺商品（无官方店铺情况下，添加渠道号店铺商品也算）到橱窗、视频、直播，产生的订单为自卖订单","tag_type":"grey","help_doc":"","sort":0,"extra":"","key":"c_biz_self_sell","text":"小店自卖"},{"key":"compass_source_not_ad_mark","text":"非广告","hover_text":"该订单通过自然流量成交","tag_type":"grey","help_doc":"","sort":0,"extra":""},{"extra":"{\"compass_first_level_entrance_text\":\"店铺页面\",\"compass_first_level_entrance\":\"store\"}","key":"compass_source_content_type_product_card","text":"商品卡","hover_text":"该订单通过商品卡方式成交，2023/3/1起创建的订单，将于第二天更新。更多流量来源请在订单导出明细查看","tag_type":"grey","help_doc":"","sort":0}],"has_tax":false,"c_biz":8,"finish_time":0,"account_list":{"account_info":[]},"promotion_shop_amount":93,"supplier_id":"","promotion_talent_amount":0,"out_product_id":"0","send_pay":0,"warehouse_ids":[],"out_sku_id":"","order_expire_time":1800,"origin_id":"","promotion_pay_amount":0,"sku_yun_warehouse_info":[],"card_voucher":{"valid_start":0,"valid_end":0,"valid_days":0},"given_exp_ship_time_desc":"","campaign_info":[],"second_cid":20140,"sub_b_type_desc":"H5","goods_type":0,"out_warehouse_ids":[],"video_id":"","encrypt_post_tel":"$$9ib1bBJzCKTkjg04xbfspUlzsTx4qd2JpRsqjaZSs67nLpqfABc/dSTuo7FPq1G5TNl1SRb2mWFsfeU+6tLVjHIwN/8pnOqw7iIkoraW6OaHQw==*CgYIASAHKAESPgo8DUgd2cXbLiQNeIznCrguzTCcHYmwt+UN/HoNHi7BqDiMW6CQqn4qp83uVYJE08Cq7/G8vez2++6cme3wGgA=$1$$","ad_env_type":"","pay_type":8,"send_pay_desc":"-","code":"","content_id":"0","b_type":2,"writeoff_info":[],"modify_amount":0,"sku_cargo_future_stock":{"supply_sku_snapshots":[{"batch_detail":[{"arrive_time":0,"arrive_time_type":0,"inventory_type":0,"batch_id":0,"stock_num":1}],"inventory_type":0}]},"biz_desc":"小店","fourth_cid":0,"pre_sale_type":0,"promotion_amount":206,"promotion_platform_amount":113,"promotion_redpack_amount":0,"biz":2,"master_sku_order_id":"","author_name":"","inventory_list":[{"warehouse_type":0,"warehouse_name":"","warehouse_id":"","out_warehouse_id":"","inventory_type":1,"inventory_type_desc":"普通库存","count":1}],"ship_time":0,"author_id":0,"product_name":"富士instax一次成像正品原装迷你冰箱贴 有猫腻&古德猫宁 ","sku_id":3497056105591042,"room_id_str":"0","post_amount":0,"serial_no_info":{"serial_no_list":[]},"inventory_type":"","after_sale_info":{"refund_status":0,"after_sale_status":0,"after_sale_type":0},"encrypt_post_receiver":"##nAyR5hxLak/kb1r8dHvHKP45sbuAT+InRe9WF1G8T7P+6wQHRyNluuW/IGcBlA6vLzHSHjQhZjdDR7qJlCUGq16wG9vFBWrJ1W9gaZeqYCg=*CgYIASAHKAESPgo8VDjq7l1NGVwMt+pjlJgwfpKWTxu7DpI10l60pDoUFiDzyfdjHVHRnW7m7ZIG1UIV3y99eK9zRCJsPT23GgA=#1##","trade_type_desc":"普通","source_platform":"","gov_subsidy_detail111":{},"theme_type":"0","main_status":2,"promotion_pay_amount_details":[{"pay_promotion_type":"","share_cost":{"shop_cost":0,"platform_cost":0}}],"cancel_reason":"","pay_time":1758961200,"third_cid":22252,"given_exp_ship_time":0,"product_id_str":"3605338223074752679","room_id":0,"exp_ship_time":1759134001,"product_pic":"https://p3-aio.ecombdimg.com/obj/ecom-shop-material/jpeg_m_0e9ee3b381bc1db5449e478ade4212e9_sx_287964_www800-800","first_cid":20000,"product_id":3605338223074752500,"need_serial_number":true,"channel_payment_no":"2105012509270601071450256186","cid":0,"theme_type_desc":"-","goods_price":1000,"main_status_desc":"备货中","sub_b_type":3,"update_time":1758961202,"order_type_desc":"普通订单","c_biz_desc":"小店自卖","platform_cost_amount":113,"parent_order_id":"6921434904368742107","post_insurance_amount":0,"post_addr":{"street":{"id":"3205090040001","name":"江陵街道"},"encrypt_detail":"##JCC9OkUD52zEDcEqY04nLLpjuSsGyGmvx8TZHBLcKdeZxqOP+Yo41x6vvtvZiIPaVJX0eC28xp9LO1lhg8NSOPr23tS/KwFbqJaLx7UjOxv+p9CB6f/f*CgYIASAHKAESPgo8jJ4JE9tJayEKyjZAbHliS46m6IRHkZ9JVhwHKlEq5GPNmn1ydUizH5z0gFX5faVhxZBqbf7d+TNhwlW+GgA=#1##","province":{"name":"江苏省","id":"32"},"city":{"name":"苏州市","id":"320500"},"town":{"name":"吴江区","id":"320509"}},"promotion_redpack_talent_amount":0,"page_id":0,"bundle_sku_info":[],"pay_amount":794,"origin_amount":1000,"is_comment":0,"product_channel_info":{"product_channel_type":0,"product_channel_id":""},"promotion_detail":{"kol_discount_detail":{"redpack_amount":0,"redpack_info":[],"total_amount":0,"coupon_amount":0,"full_discount_amount":0,"coupon_info":[],"full_discount_info":[]},"shop_discount_detail":{"total_amount":93,"coupon_amount":93,"full_discount_amount":0,"coupon_info":[{"coupon_id":7554680540910797000,"coupon_type":43,"coupon_meta_id":"7544476399822831923","coupon_amount":93,"coupon_name":"专享券0831续期","share_discount_cost":{"platform_cost":0,"shop_cost":93,"author_cost":0}}],"full_discount_info":[]},"platform_discount_detail":{"user_balance_amount":0,"total_amount":113,"gold_coin_amount":0,"official_deduction_amount":0,"full_discount_amount":0,"coupon_info":[{"coupon_name":"平台中秋消费券","share_discount_cost":{"platform_cost":113,"shop_cost":0,"author_cost":0},"coupon_id":7554663142283428000,"coupon_type":3,"coupon_meta_id":"7550521393004347675","coupon_amount":113}],"redpack_info":[],"allowance_amount":0,"redpack_amount":0,"full_discount_info":[],"coupon_amount":113}},"relation_order":{"write_off_no":"","relation_order_id":""},"sku_period_purchase_info":{},"order_amount":1000,"create_time":1758961198,"confirm_receipt_time":0,"promotion_redpack_platform_amount":0,"b_type_desc":"抖音","trade_type":0,"modify_post_amount":0,"logistics_receipt_time":0,"app_id":1128,"spec":[{"name":"套餐","value":"有猫腻"}],"given_product_type":"","order_id":"6921434904369004251","sku_car_model_desc":"","inventory_type_desc":"","sku_customization_info":[],"order_type":0,"order_status":2,"order_status_desc":"待发货","shop_cost_amount":93,"order_level":3,"item_num":1,"receive_type":0,"appointment_ship_time":0,"sum_amount":1000},{"biz_desc":"小店","item_num":1,"sku_id":3561916800006658,"sku_car_model_desc":"","out_warehouse_ids":[],"warehouse_ids":[],"order_type":0,"need_serial_number":true,"sub_b_type":3,"promotion_amount":0,"confirm_receipt_time":0,"order_id":"6921434904369069787","finish_time":0,"source_platform":"","product_name":"富士instax一次成像正品原装宽幅冰箱贴 甜橙时光","exp_ship_time":1759134001,"platform_cost_amount":0,"promotion_redpack_platform_amount":0,"product_pic":"https://p3-aio.ecombdimg.com/obj/ecom-shop-material/jpeg_m_b91e467e474192568e46832e9edef8e3_sx_327323_www1440-1440","logistics_receipt_time":0,"account_list":{"account_info":[]},"pay_type":8,"ship_time":0,"b_type":2,"cancel_reason":"","gov_subsidy_detail111":{},"inventory_type_desc":"","sum_amount":1600,"supplier_id":"","after_sale_info":{"after_sale_type":0,"refund_status":0,"after_sale_status":0},"sku_yun_warehouse_info":[],"given_product_type":"","spec":[{"value":"宽幅冰箱贴 甜橙时光","name":"规格名"}],"is_comment":0,"pre_sale_type":0,"video_id":"","parent_order_id":"6921434904368742107","inventory_type":"","goods_type":0,"c_biz_desc":"小店自卖","theme_type":"0","order_status_desc":"待发货","sku_period_purchase_info":{},"second_cid":20140,"page_id":0,"has_tax":false,"order_amount":1600,"goods_price":1600,"campaign_info":[],"serial_no_info":{"serial_no_list":[]},"promotion_redpack_talent_amount":0,"room_id":0,"card_voucher":{"valid_start":0,"valid_end":0,"valid_days":0},"third_cid":22252,"master_sku_order_id":"","post_amount":0,"product_id_str":"3776965105443537183","reduce_stock_type_desc":"下单减库存","promotion_platform_amount":0,"product_id":3776965105443537400,"order_expire_time":1800,"first_cid":20000,"modify_amount":0,"sku_customization_info":[],"code":"6977665611923","main_status_desc":"备货中","main_status":2,"relation_order":{"write_off_no":"","relation_order_id":""},"sku_cargo_future_stock":{"supply_sku_snapshots":[{"inventory_type":0,"batch_detail":[{"arrive_time":0,"arrive_time_type":0,"inventory_type":0,"batch_id":0,"stock_num":1}]}]},"promotion_redpack_amount":0,"modify_post_amount":0,"room_id_str":"0","order_status":2,"create_time":1758961198,"biz":2,"ad_env_type":"","c_biz":8,"theme_type_desc":"-","send_pay":0,"promotion_shop_amount":0,"content_id":"0","app_id":1128,"encrypt_post_receiver":"##aUsdjPJ0GrsyKa4lstyUNkYriiBSW+xSWHStzI4lg4CkGFYemE2D2V7+Yw4Nvp6oXZFHZAZet4aTZ2Ip6SdiB3CCZGjzFHarWyQ+SJ5DOL0=*CgYIASAHKAESPgo8eASV6d4p09f9LYMw2Mk6syoEcBZ47F6uGnTFTILSPLl1ZeYxruq6m74L1+AK3ALtwAdYpm0hn44+SgteGgA=#1##","out_sku_id":"","appointment_ship_time":0,"channel_payment_no":"2105012509270601071450256186","encrypt_post_tel":"$$MDFzVYya1Ys+5uiOhSq1w/PdT4UTYvoV7sDEfwfwBJItduIDjrrBZ6o/ZoqZdVDvaGhNsoMU//2OzE1VycKmH8vG7FODkprIZM500ME6J1Gp9Q==*CgYIASAHKAESPgo8p4YY763RzBB2CiRocEYJ6r7HoZU+Fwbj70r6z6MrWamrBGPxyXM5gBweJ9gTVH97aKkI9wz2A7EMF471GgA=$1$$","out_product_id":"0","post_insurance_amount":0,"order_type_desc":"普通订单","pay_amount":1600,"given_exp_ship_time":0,"b_type_desc":"抖音","promotion_pay_amount_details":[{"pay_promotion_type":"","share_cost":{"shop_cost":0,"platform_cost":0}}],"origin_amount":1600,"receive_type":0,"given_exp_ship_time_desc":"","writeoff_info":[],"origin_id":"","order_level":3,"send_pay_desc":"-","cid":0,"trade_type":0,"fourth_cid":0,"update_time":1758961202,"shop_cost_amount":0,"author_id":0,"promotion_pay_amount":0,"pay_time":1758961200,"post_addr":{"street":{"name":"江陵街道","id":"3205090040001"},"encrypt_detail":"##XC/2M/i1Gg3E3dNrcmv4T5zoWaIeESZB1GaIj7OZ1NXd38qqETpixVP9WDRRLULL+Cp1aDQISt9Qv6ZbRF8vTQlw88Ptp49oVDOWtJHvq5TmQHvtP5Jr*CgYIASAHKAESPgo8H3mLBpRFxeli8Tk5NBtbUd2zGSnR4re26JYeX+rrk/evicitt5J8SGwvMhlArYgsUivirl8Yq11duIktGgA=#1##","province":{"name":"江苏省","id":"32"},"city":{"name":"苏州市","id":"320500"},"town":{"name":"吴江区","id":"320509"}},"trade_type_desc":"普通","product_channel_info":{"product_channel_type":0,"product_channel_id":""},"promotion_detail":{"shop_discount_detail":{"full_discount_amount":0,"coupon_info":[],"full_discount_info":[],"total_amount":0,"coupon_amount":0},"platform_discount_detail":{"redpack_amount":0,"allowance_amount":0,"official_deduction_amount":0,"full_discount_info":[],"redpack_info":[],"coupon_info":[],"full_discount_amount":0,"total_amount":0,"gold_coin_amount":0,"coupon_amount":0,"user_balance_amount":0},"kol_discount_detail":{"redpack_info":[],"total_amount":0,"coupon_amount":0,"full_discount_amount":0,"coupon_info":[],"full_discount_info":[],"redpack_amount":0}},"reduce_stock_type":1,"sub_b_type_desc":"H5","promotion_talent_amount":0,"sku_order_tag_ui":[{"tag_type":"","help_doc":"https://school.jinritemai.com/doudian/web/article/aHwH9wK4Je2N","sort":0,"extra":"","key":"delay_send_pay_money","text":"晚发即赔","hover_text":""},{"key":"supply_7day_return_label","text":"7天","hover_text":"","tag_type":"","help_doc":"https://school.jinritemai.com/doudian/web/article/101835?from=shop_article","sort":0,"extra":""},{"extra":"","key":"quick_refund_label","text":"极速退","hover_text":"","tag_type":"","help_doc":"https://school.jinritemai.com/doudian/web/article/101792?from=shop_article","sort":0},{"sort":0,"extra":"","key":"c_biz_self_sell","text":"小店自卖","hover_text":"达人通过「我的店铺」、或通过链接添加人店一体店铺商品（无官方店铺情况下，添加渠道号店铺商品也算）到橱窗、视频、直播，产生的订单为自卖订单","tag_type":"grey","help_doc":""},{"hover_text":"该订单通过自然流量成交","tag_type":"grey","help_doc":"","sort":0,"extra":"","key":"compass_source_not_ad_mark","text":"非广告"},{"sort":0,"extra":"{\"compass_first_level_entrance\":\"store\",\"compass_first_level_entrance_text\":\"店铺页面\"}","key":"compass_source_content_type_product_card","text":"商品卡","hover_text":"该订单通过商品卡方式成交，2023/3/1起创建的订单，将于第二天更新。更多流量来源请在订单导出明细查看","tag_type":"grey","help_doc":""}],"author_name":"","bundle_sku_info":[],"inventory_list":[{"count":1,"warehouse_type":0,"warehouse_name":"","warehouse_id":"","out_warehouse_id":"","inventory_type":1,"inventory_type_desc":"普通库存"}]},{"modify_post_amount":0,"after_sale_info":{"refund_status":0,"after_sale_status":0,"after_sale_type":0},"order_type":0,"product_channel_info":{"product_channel_type":0,"product_channel_id":""},"main_status":2,"promotion_pay_amount_details":[{"pay_promotion_type":"","share_cost":{"shop_cost":0,"platform_cost":0}}],"promotion_amount":0,"sum_amount":1600,"receive_type":0,"pre_sale_type":0,"encrypt_post_tel":"$$UFIucS2EsglXukvCTYi9p84zIfjLVUBQgvtfFEREAWO0s4StvzM7aeyLa4dO9XxtUFmeWUQkKPv25Op0OnnXioMsyv1kRL4R4gBcaKZFw6LF5g==*CgYIASAHKAESPgo87py34+nT8SniLAx/wezBSBgOYQsi/ASW7+/I4uQ1P575BByAM/+CsZIRW0kXsoWHD8vD6gMT/NBTaPSlGgA=$1$$","promotion_detail":{"kol_discount_detail":{"redpack_info":[],"total_amount":0,"coupon_amount":0,"full_discount_amount":0,"coupon_info":[],"full_discount_info":[],"redpack_amount":0},"shop_discount_detail":{"coupon_info":[],"full_discount_info":[],"total_amount":0,"coupon_amount":0,"full_discount_amount":0},"platform_discount_detail":{"redpack_amount":0,"coupon_info":[],"user_balance_amount":0,"total_amount":0,"gold_coin_amount":0,"official_deduction_amount":0,"full_discount_amount":0,"allowance_amount":0,"redpack_info":[],"coupon_amount":0,"full_discount_info":[]}},"first_cid":20000,"platform_cost_amount":0,"out_product_id":"0","source_platform":"","sku_period_purchase_info":{},"sku_cargo_future_stock":{"supply_sku_snapshots":[{"inventory_type":0,"batch_detail":[{"arrive_time":0,"arrive_time_type":0,"inventory_type":0,"batch_id":0,"stock_num":1}]}]},"app_id":1128,"second_cid":20140,"given_product_type":"","campaign_info":[],"post_amount":0,"ad_env_type":"","parent_order_id":"6921434904368742107","author_id":0,"writeoff_info":[],"update_time":1758961202,"goods_price":1600,"promotion_pay_amount":0,"pay_time":1758961200,"confirm_receipt_time":0,"c_biz":8,"order_type_desc":"普通订单","supplier_id":"","content_id":"0","cancel_reason":"","promotion_redpack_platform_amount":0,"out_sku_id":"","inventory_type_desc":"","given_exp_ship_time_desc":"","reduce_stock_type_desc":"下单减库存","inventory_list":[{"inventory_type":1,"inventory_type_desc":"普通库存","count":1,"warehouse_type":0,"warehouse_name":"","warehouse_id":"","out_warehouse_id":""}],"order_amount":1600,"has_tax":false,"post_addr":{"street":{"name":"江陵街道","id":"3205090040001"},"encrypt_detail":"##MaLyOJEil/zOPQCe4ch95GnfP8LqAptQ86La3losy/iFSBl79J6gajZGA/e8+BF+J8pmS7cpsQNw/5KtWHpxXXGxNE18kx/VC/BLTfGi0uPK59R2rv2t*CgYIASAHKAESPgo831BLEb78T4EZPlPFmZ5I5c4AuMJ1O/cSi0aje2jJCviVA2NS2TjLrQzjv8vaU97vHZ5tNGW03lsJ4hi1GgA=#1##","province":{"name":"江苏省","id":"32"},"city":{"id":"320500","name":"苏州市"},"town":{"name":"吴江区","id":"320509"}},"promotion_redpack_amount":0,"post_insurance_amount":0,"main_status_desc":"备货中","b_type_desc":"抖音","order_expire_time":1800,"finish_time":0,"reduce_stock_type":1,"account_list":{"account_info":[]},"sku_customization_info":[],"shop_cost_amount":0,"master_sku_order_id":"","ship_time":0,"sub_b_type":3,"room_id":0,"send_pay_desc":"-","cid":0,"exp_ship_time":1759134001,"room_id_str":"0","biz":2,"b_type":2,"sku_id":3496915541323522,"goods_type":0,"encrypt_post_receiver":"##ddDK21VfmBO5AMeY1mhBw2E1MlWzb0zx+EBV1ZlAcxZbbFi+ghDLboVep0KNdgD3uhZFXxEDuzf+AnWp38MEWPMunACE05LOWJj4WjpMwzw=*CgYIASAHKAESPgo8Fdrifb7Lrv+4wEBkLwzGUNYjeI2BD6C0f9KHQEDwkKRDPzj/EiV7d8cKBFMdz/01x0eHjtFUpn2LCdoEGgA=#1##","video_id":"","logistics_receipt_time":0,"theme_type_desc":"-","theme_type":"0","pay_amount":1600,"serial_no_info":{"serial_no_list":[]},"warehouse_ids":[],"appointment_ship_time":0,"code":"6970967599234","inventory_type":"","promotion_shop_amount":0,"create_time":1758961198,"given_exp_ship_time":0,"is_comment":0,"third_cid":22252,"trade_type":0,"order_status":2,"card_voucher":{"valid_start":0,"valid_end":0,"valid_days":0},"promotion_redpack_talent_amount":0,"order_status_desc":"待发货","need_serial_number":true,"bundle_sku_info":[],"sub_b_type_desc":"H5","gov_subsidy_detail111":{},"channel_payment_no":"2105012509270601071450256186","origin_id":"","promotion_talent_amount":0,"out_warehouse_ids":[],"pay_type":8,"trade_type_desc":"普通","product_id":3757473802854990300,"page_id":0,"fourth_cid":0,"author_name":"","biz_desc":"小店","order_level":3,"sku_car_model_desc":"","product_name":"富士instax一次成像正品原装冰箱贴相框方形花绘宽幅海韵","product_pic":"https://p3-aio.ecombdimg.com/obj/ecom-shop-material/LmFiCYZh_m_b832066ef2749cab89ea6544316d2ec4_sx_283670_www800-800","item_num":1,"send_pay":0,"product_id_str":"3757473802854990384","spec":[{"name":"套餐","value":"宽幅海韵"}],"promotion_platform_amount":0,"sku_order_tag_ui":[{"text":"晚发即赔","hover_text":"","tag_type":"","help_doc":"https://school.jinritemai.com/doudian/web/article/aHwH9wK4Je2N","sort":0,"extra":"","key":"delay_send_pay_money"},{"key":"supply_7day_return_label","text":"7天","hover_text":"","tag_type":"","help_doc":"https://school.jinritemai.com/doudian/web/article/101835?from=shop_article","sort":0,"extra":""},{"tag_type":"","help_doc":"https://school.jinritemai.com/doudian/web/article/101792?from=shop_article","sort":0,"extra":"","key":"quick_refund_label","text":"极速退","hover_text":""},{"hover_text":"达人通过「我的店铺」、或通过链接添加人店一体店铺商品（无官方店铺情况下，添加渠道号店铺商品也算）到橱窗、视频、直播，产生的订单为自卖订单","tag_type":"grey","help_doc":"","sort":0,"extra":"","key":"c_biz_self_sell","text":"小店自卖"},{"help_doc":"","sort":0,"extra":"","key":"compass_source_not_ad_mark","text":"非广告","hover_text":"该订单通过自然流量成交","tag_type":"grey"},{"sort":0,"extra":"{\"compass_first_level_entrance_text\":\"购物车\",\"compass_first_level_entrance\":\"order_center_cart\"}","key":"compass_source_content_type_product_card","text":"商品卡","hover_text":"该订单通过商品卡方式成交，2023/3/1起创建的订单，将于第二天更新。更多流量来源请在订单导出明细查看","tag_type":"grey","help_doc":""}],"order_id":"6921434904369135323","c_biz_desc":"小店自卖","sku_yun_warehouse_info":[],"relation_order":{"write_off_no":"","relation_order_id":""},"origin_amount":1600,"modify_amount":0},{"promotion_redpack_platform_amount":0,"room_id":7554660096526241000,"spec":[{"name":"套餐","value":"热恋显影系列 mini相纸边框贴"}],"order_status":2,"b_type":2,"sku_car_model_desc":"","author_name":"富士INSTAX打印机旗舰店","c_biz_desc":"小店自卖","order_expire_time":1800,"account_list":{"account_info":[]},"sku_period_purchase_info":{},"trade_type_desc":"普通","bundle_sku_info":[],"product_id":3756910719791137000,"modify_post_amount":0,"sub_b_type_desc":"H5","author_id":1160739690912255,"send_pay":0,"given_product_type":"","content_id":"7554660096526240539","room_id_str":"7554660096526240539","biz":2,"sum_amount":1000,"parent_order_id":"6921434904368742107","goods_type":0,"post_addr":{"city":{"id":"320500","name":"苏州市"},"town":{"name":"吴江区","id":"320509"},"street":{"name":"江陵街道","id":"3205090040001"},"encrypt_detail":"##xTmNUwhatux2ON9gZYlDvBEhE9DpKhYTtLSgqsps/1oFz/S42bHHvBnZHLct3tHtSPXDqvWDhdkkiRzF9XLbLCe3IQlrSq6oZW+MfMe8Kcj7zQivfn/i*CgYIASAHKAESPgo82IA5upVLt3yuamm++coLLsmmpI0n+zrbC6VsWt77sXbbW561fsmbEEwxQnhuw0x3i/eybrxp2bh1sfHGGgA=#1##","province":{"id":"32","name":"江苏省"}},"theme_type":"0","post_amount":0,"promotion_platform_amount":0,"sku_cargo_future_stock":{"supply_sku_snapshots":[{"batch_detail":[{"arrive_time_type":0,"inventory_type":0,"batch_id":0,"stock_num":1,"arrive_time":0}],"inventory_type":0}]},"update_time":1758961202,"item_num":1,"promotion_pay_amount":0,"given_exp_ship_time":0,"encrypt_post_tel":"$$MLWtCJRe0wZhldyMF0qdMnsEYOSxtnQFaz7wobfym5rie15MrdRZ4iIUZutygz2/sc9yE5gg1F8Xp/9UjexxlW0g3ZoC3AFa3Vi5bJr1R63jcg==*CgYIASAHKAESPgo8BNWhmrOcX4E34vc4viu+grhLNlcnp6TxPeTa8W+bHsm0FKjhIXw4k3OeIzMlmAvY7lYkuy0UYRQfvWoQGgA=$1$$","app_id":1128,"second_cid":21663,"source_platform":"","order_type":0,"shop_cost_amount":0,"after_sale_info":{"refund_status":0,"after_sale_status":0,"after_sale_type":0},"encrypt_post_receiver":"##RCyWLjXwvO22JqPt8Ayx9Hm3NgHa4Iu/1hj7bOTFV9TNE1kGGunqWn1i0TSc2HxK366YGB072siaaIQZn8+Yk+LkiGF43YHgVnG0/5EY2S4=*CgYIASAHKAESPgo8sq25hCi4Z447O3LBD97ybglvTXEeqwFxU+bs/oWsx27djV0uLpqtONG317qajcbNHWh1wJZz4Y9sI4IQGgA=#1##","code":"6977665612012","promotion_detail":{"kol_discount_detail":{"full_discount_info":[],"redpack_amount":0,"redpack_info":[],"total_amount":0,"coupon_amount":0,"full_discount_amount":0,"coupon_info":[]},"shop_discount_detail":{"full_discount_amount":0,"coupon_info":[],"full_discount_info":[],"total_amount":0,"coupon_amount":0},"platform_discount_detail":{"allowance_amount":0,"coupon_amount":0,"full_discount_info":[],"full_discount_amount":0,"redpack_amount":0,"coupon_info":[],"official_deduction_amount":0,"user_balance_amount":0,"total_amount":0,"gold_coin_amount":0,"redpack_info":[]}},"order_level":3,"sku_yun_warehouse_info":[],"fourth_cid":0,"reduce_stock_type_desc":"下单减库存","ad_env_type":"","logistics_receipt_time":0,"cancel_reason":"","confirm_receipt_time":0,"relation_order":{"relation_order_id":"","write_off_no":""},"out_warehouse_ids":[],"order_type_desc":"普通订单","platform_cost_amount":0,"sub_b_type":3,"writeoff_info":[],"serial_no_info":{"serial_no_list":[]},"page_id":0,"main_status":2,"origin_amount":1000,"first_cid":20102,"cid":0,"order_status_desc":"待发货","create_time":1758961198,"pay_amount":1000,"main_status_desc":"备货中","channel_payment_no":"2105012509270601071450256186","theme_type_desc":"-","need_serial_number":false,"receive_type":0,"order_amount":1000,"out_product_id":"0","campaign_info":[],"sku_order_tag_ui":[{"text":"晚发即赔","hover_text":"","tag_type":"","help_doc":"https://school.jinritemai.com/doudian/web/article/aHwH9wK4Je2N","sort":0,"extra":"","key":"delay_send_pay_money"},{"extra":"","key":"supply_7day_return_label","text":"7天","hover_text":"","tag_type":"","help_doc":"https://school.jinritemai.com/doudian/web/article/101835?from=shop_article","sort":0},{"extra":"","key":"quick_refund_label","text":"极速退","hover_text":"","tag_type":"","help_doc":"https://school.jinritemai.com/doudian/web/article/101792?from=shop_article","sort":0},{"hover_text":"达人通过「我的店铺」、或通过链接添加人店一体店铺商品（无官方店铺情况下，添加渠道号店铺商品也算）到橱窗、视频、直播，产生的订单为自卖订单","tag_type":"grey","help_doc":"","sort":0,"extra":"","key":"c_biz_self_sell","text":"小店自卖"},{"key":"compass_source_not_ad_mark","text":"非广告","hover_text":"该订单通过自然流量成交","tag_type":"grey","help_doc":"","sort":0,"extra":""},{"text":"直播","hover_text":"该订单通过直播方式成交，2023/3/1起创建的订单，将于第二天更新。更多流量来源请在订单导出明细查看","tag_type":"grey","help_doc":"","sort":0,"extra":"{\"compass_first_level_entrance_text\":\"直播推荐\",\"compass_first_level_entrance\":\"recommend_live\"}","key":"compass_source_content_type_live"}],"pay_time":1758961200,"given_exp_ship_time_desc":"","trade_type":0,"ship_time":0,"post_insurance_amount":0,"finish_time":0,"out_sku_id":"","origin_id":"","biz_desc":"小店","has_tax":false,"product_pic":"https://p3-aio.ecombdimg.com/obj/ecom-shop-material/jpeg_m_780f7f3523c2760d7c2d0f170ea74f73_sx_346734_www800-800","reduce_stock_type":1,"promotion_amount":0,"gov_subsidy_detail111":{},"product_id_str":"3756910719791136951","card_voucher":{"valid_start":0,"valid_end":0,"valid_days":0},"product_name":"富士instax一次成像正品原装热恋显影系列 mini相纸边框贴","master_sku_order_id":"","c_biz":8,"pre_sale_type":0,"inventory_type_desc":"","appointment_ship_time":0,"order_id":"6921434904369200859","pay_type":8,"video_id":"","warehouse_ids":[],"sku_id":3495521923127554,"b_type_desc":"抖音","modify_amount":0,"inventory_list":[{"count":1,"warehouse_type":0,"warehouse_name":"","warehouse_id":"","out_warehouse_id":"","inventory_type":1,"inventory_type_desc":"普通库存"}],"promotion_pay_amount_details":[{"share_cost":{"shop_cost":0,"platform_cost":0},"pay_promotion_type":""}],"promotion_shop_amount":0,"product_channel_info":{"product_channel_type":0,"product_channel_id":""},"goods_price":1000,"promotion_talent_amount":0,"send_pay_desc":"-","inventory_type":"","is_comment":0,"third_cid":0,"sku_customization_info":[],"supplier_id":"","exp_ship_time":1759134001,"promotion_redpack_amount":0,"promotion_redpack_talent_amount":0},{"receive_type":0,"promotion_redpack_amount":0,"relation_order":{"write_off_no":"","relation_order_id":""},"spec":[{"name":"规格名","value":"蛋糕派对相纸边框贴"}],"supplier_id":"","encrypt_post_tel":"$$nAVD7X24VNrHgkapfdEeGBL+M0l8U8PnNOQ/BqSrs4kV+yYz6YgtrHhX6rojb7vcBpM3kTF1lxgKiKBYIEUMG4Ntq+xKooe8m3KxxAGzbWIeuQ==*CgYIASAHKAESPgo8gssBI2d2OJg4gqvClr/Pfc9BFbA7mX9li33PFWuqU5/C2I7wMl0r8kw/2v1HwClGubwQzIgIiVCQN1wVGgA=$1$$","out_warehouse_ids":[],"platform_cost_amount":0,"ship_time":0,"parent_order_id":"6921434904368742107","trade_type":0,"modify_post_amount":0,"shop_cost_amount":0,"biz":2,"cid":0,"sku_car_model_desc":"","card_voucher":{"valid_start":0,"valid_end":0,"valid_days":0},"order_expire_time":1800,"sub_b_type":3,"order_id":"6921434904369266395","third_cid":0,"sku_cargo_future_stock":{"supply_sku_snapshots":[{"inventory_type":0,"batch_detail":[{"stock_num":1,"arrive_time":0,"arrive_time_type":0,"inventory_type":0,"batch_id":0}]}]},"order_level":3,"item_num":1,"fourth_cid":0,"content_id":"7554660096526240539","origin_id":"","sku_order_tag_ui":[{"help_doc":"https://school.jinritemai.com/doudian/web/article/aHwH9wK4Je2N","sort":0,"extra":"","key":"delay_send_pay_money","text":"晚发即赔","hover_text":"","tag_type":""},{"help_doc":"https://school.jinritemai.com/doudian/web/article/101835?from=shop_article","sort":0,"extra":"","key":"supply_7day_return_label","text":"7天","hover_text":"","tag_type":""},{"hover_text":"","tag_type":"","help_doc":"https://school.jinritemai.com/doudian/web/article/101792?from=shop_article","sort":0,"extra":"","key":"quick_refund_label","text":"极速退"},{"hover_text":"达人通过「我的店铺」、或通过链接添加人店一体店铺商品（无官方店铺情况下，添加渠道号店铺商品也算）到橱窗、视频、直播，产生的订单为自卖订单","tag_type":"grey","help_doc":"","sort":0,"extra":"","key":"c_biz_self_sell","text":"小店自卖"},{"text":"非广告","hover_text":"该订单通过自然流量成交","tag_type":"grey","help_doc":"","sort":0,"extra":"","key":"compass_source_not_ad_mark"},{"key":"compass_source_content_type_live","text":"直播","hover_text":"该订单通过直播方式成交，2023/3/1起创建的订单，将于第二天更新。更多流量来源请在订单导出明细查看","tag_type":"grey","help_doc":"","sort":0,"extra":"{\"compass_first_level_entrance\":\"recommend_live\",\"compass_first_level_entrance_text\":\"直播推荐\"}"}],"goods_type":0,"warehouse_ids":[],"promotion_shop_amount":0,"encrypt_post_receiver":"##V5tEEtCXWiCB+m/LTJdWfUcbUvXiMy4m5SqJ4xYD1tqFBfJvQLrNKn/ZbiGv+0u9JKpCrZtaJY+s36YFgvbPcEQFE1xUD01UvzFlrBozKhQ=*CgYIASAHKAESPgo83/aA/mPfjOxWF/sXwA4/d/c5DFXx3wlCKp676/T8EFaKLiG9NdYBzYk0HVz9SfkTx2uYhgM6pW5pxwDtGgA=#1##","author_id":1160739690912255,"out_product_id":"0","update_time":1758961202,"product_channel_info":{"product_channel_id":"","product_channel_type":0},"post_insurance_amount":0,"pay_type":8,"pay_amount":1000,"promotion_redpack_platform_amount":0,"order_type":0,"finish_time":0,"serial_no_info":{"serial_no_list":[]},"sku_yun_warehouse_info":[],"b_type":2,"sku_id":3561748254245634,"after_sale_info":{"after_sale_type":0,"refund_status":0,"after_sale_status":0},"send_pay":0,"channel_payment_no":"2105012509270601071450256186","inventory_list":[{"out_warehouse_id":"","inventory_type":1,"inventory_type_desc":"普通库存","count":1,"warehouse_type":0,"warehouse_name":"","warehouse_id":""}],"product_pic":"https://p3-aio.ecombdimg.com/obj/ecom-shop-material/jpeg_m_2a71c56c5b89da2048a2ad4817f6ee38_sx_657086_www1440-1440","origin_amount":1000,"promotion_detail":{"platform_discount_detail":{"gold_coin_amount":0,"allowance_amount":0,"official_deduction_amount":0,"redpack_amount":0,"coupon_info":[],"redpack_info":[],"total_amount":0,"coupon_amount":0,"full_discount_amount":0,"full_discount_info":[],"user_balance_amount":0},"kol_discount_detail":{"full_discount_info":[],"redpack_amount":0,"redpack_info":[],"total_amount":0,"coupon_amount":0,"full_discount_amount":0,"coupon_info":[]},"shop_discount_detail":{"full_discount_info":[],"total_amount":0,"coupon_amount":0,"full_discount_amount":0,"coupon_info":[]}},"goods_price":1000,"promotion_amount":0,"promotion_pay_amount":0,"sub_b_type_desc":"H5","reduce_stock_type_desc":"下单减库存","theme_type_desc":"-","logistics_receipt_time":0,"first_cid":20102,"video_id":"","post_addr":{"province":{"name":"江苏省","id":"32"},"city":{"name":"苏州市","id":"320500"},"town":{"name":"吴江区","id":"320509"},"street":{"name":"江陵街道","id":"3205090040001"},"encrypt_detail":"##HfGNrb7XEYhdEj24PNszH7SvzfWTujx5K9w+BGmbsPsBg9Wxin40PG9bkcMkdbwIjeNiDHlk4wclA/hdA/C22dznfYkzHkrm5p604wXKcYev7OIyU7fx*CgYIASAHKAESPgo8tKOHukElHMIccnlED6rLXHz3OxgNCME/z9u6GcisLFvyoKIhVw8cB3aOe9B/+NBwXcAQr9UZTm65l7ZTGgA=#1##"},"has_tax":false,"page_id":0,"theme_type":"0","promotion_redpack_talent_amount":0,"pre_sale_type":0,"inventory_type_desc":"","appointment_ship_time":0,"given_exp_ship_time_desc":"","gov_subsidy_detail111":{},"is_comment":0,"account_list":{"account_info":[]},"given_product_type":"","order_status":2,"room_id_str":"7554660096526240539","promotion_talent_amount":0,"order_amount":1000,"app_id":1128,"main_status_desc":"备货中","promotion_pay_amount_details":[{"pay_promotion_type":"","share_cost":{"shop_cost":0,"platform_cost":0}}],"b_type_desc":"抖音","product_id":3776953554011554300,"exp_ship_time":1759134001,"code":"6977665611886","cancel_reason":"","source_platform":"","room_id":7554660096526241000,"out_sku_id":"","send_pay_desc":"-","inventory_type":"","pay_time":1758961200,"product_id_str":"3776953554011554474","c_biz_desc":"小店自卖","ad_env_type":"","writeoff_info":[],"sum_amount":1000,"confirm_receipt_time":0,"sku_period_purchase_info":{},"sku_customization_info":[],"create_time":1758961198,"reduce_stock_type":1,"given_exp_ship_time":0,"bundle_sku_info":[],"author_name":"富士INSTAX打印机旗舰店","master_sku_order_id":"","campaign_info":[],"biz_desc":"小店","modify_amount":0,"main_status":2,"second_cid":21663,"post_amount":0,"c_biz":8,"trade_type_desc":"普通","product_name":"富士instax一次成像正品原装蛋糕派对相纸边框贴","order_status_desc":"待发货","promotion_platform_amount":0,"order_type_desc":"普通订单","need_serial_number":false},{"product_pic":"https://p3-aio.ecombdimg.com/obj/ecom-shop-material/jpeg_m_e9bd2d056f43b80570a1b7759692202a_sx_430018_www800-800","main_status":2,"item_num":2,"origin_amount":1600,"channel_payment_no":"2105012509270601071450256186","relation_order":{"write_off_no":"","relation_order_id":""},"gov_subsidy_detail111":{},"encrypt_post_receiver":"##DKfjRPsa40Z+jzlZhFKDNvs6tI2t1iEMThesLRAth0rl/jMqYwEo5aNuZeY8uMQfucomvhmJAP6KCiDX/1bZDhmSKjgOw1ExbtGjW0XBxb4=*CgYIASAHKAESPgo8kEtCeBp4oMFBkn7aCTOBfveCQisIOn29rNUyBqeXCwH3WCYjOkmRnAZ7LY9mThSlBYXm81419QPqataCGgA=#1##","video_id":"","promotion_detail":{"kol_discount_detail":{"redpack_info":[],"total_amount":0,"coupon_amount":0,"full_discount_amount":0,"coupon_info":[],"full_discount_info":[],"redpack_amount":0},"shop_discount_detail":{"coupon_info":[],"full_discount_info":[],"total_amount":0,"coupon_amount":0,"full_discount_amount":0},"platform_discount_detail":{"coupon_info":[{"coupon_amount":400,"coupon_name":"平台中秋消费券","share_discount_cost":{"shop_cost":0,"author_cost":0,"platform_cost":400},"coupon_id":7554663142283428000,"coupon_type":3,"coupon_meta_id":"7550521393004347675"}],"full_discount_info":[],"redpack_info":[],"user_balance_amount":0,"total_amount":400,"gold_coin_amount":0,"full_discount_amount":0,"coupon_amount":400,"allowance_amount":0,"official_deduction_amount":0,"redpack_amount":0}},"product_name":"富士instax一次成像正品原装哈利波特系列 宽幅相纸边框贴","has_tax":false,"reduce_stock_type_desc":"下单减库存","campaign_info":[{"campaign_name":"2025年抖音商城中秋-立减直降","campaign_amount":0,"campaign_sub_type":1,"campaign_id":7547580654310359000,"campaign_type":7,"share_discount_cost":{"author_cost":0,"third_platform_cost":0,"platform_cost":0,"shop_cost":0}}],"order_level":3,"parent_order_id":"6921434904368742107","room_id_str":"7554660096526240539","sum_amount":3200,"page_id":0,"out_product_id":"0","trade_type":0,"content_id":"7554660096526240539","modify_post_amount":0,"b_type":2,"order_id":"6921434904369331931","reduce_stock_type":1,"writeoff_info":[],"pay_time":1758961200,"send_pay_desc":"-","inventory_list":[{"count":2,"warehouse_type":0,"warehouse_name":"","warehouse_id":"","out_warehouse_id":"","inventory_type":1,"inventory_type_desc":"普通库存"}],"pay_amount":2800,"promotion_pay_amount_details":[{"pay_promotion_type":"","share_cost":{"platform_cost":0,"shop_cost":0}}],"first_cid":20000,"theme_type_desc":"-","promotion_redpack_amount":0,"send_pay":0,"goods_type":0,"given_product_type":"","card_voucher":{"valid_end":0,"valid_days":0,"valid_start":0},"appointment_ship_time":0,"c_biz_desc":"小店自卖","app_id":1128,"sub_b_type":3,"post_insurance_amount":0,"need_serial_number":true,"biz":2,"promotion_pay_amount":0,"sku_order_tag_ui":[{"sort":0,"extra":"","key":"is_platform_free","text":"活动包邮","hover_text":"该商品下单时报名了平台包邮活动，活动期间商家为活动商品收货地址为中国大陆（不包括内蒙古、甘肃、青海、宁夏、新疆、西藏、海南、中国香港、中国澳门、中国台湾）提供包邮服务，具体规则请查看活动详情","tag_type":"","help_doc":""},{"text":"晚发即赔","hover_text":"","tag_type":"","help_doc":"https://school.jinritemai.com/doudian/web/article/aHwH9wK4Je2N","sort":0,"extra":"","key":"delay_send_pay_money"},{"sort":0,"extra":"","key":"supply_7day_return_label","text":"7天","hover_text":"","tag_type":"","help_doc":"https://school.jinritemai.com/doudian/web/article/101835?from=shop_article"},{"extra":"","key":"quick_refund_label","text":"极速退","hover_text":"","tag_type":"","help_doc":"https://school.jinritemai.com/doudian/web/article/101792?from=shop_article","sort":0},{"extra":"","key":"c_biz_self_sell","text":"小店自卖","hover_text":"达人通过「我的店铺」、或通过链接添加人店一体店铺商品（无官方店铺情况下，添加渠道号店铺商品也算）到橱窗、视频、直播，产生的订单为自卖订单","tag_type":"grey","help_doc":"","sort":0},{"help_doc":"","sort":0,"extra":"","key":"compass_source_not_ad_mark","text":"非广告","hover_text":"该订单通过自然流量成交","tag_type":"grey"},{"hover_text":"该订单通过直播方式成交，2023/3/1起创建的订单，将于第二天更新。更多流量来源请在订单导出明细查看","tag_type":"grey","help_doc":"","sort":0,"extra":"{\"compass_first_level_entrance\":\"recommend_live\",\"compass_first_level_entrance_text\":\"直播推荐\"}","key":"compass_source_content_type_live","text":"直播"}],"c_biz":8,"trade_type_desc":"普通","goods_price":1600,"order_amount":3200,"fourth_cid":0,"code":"6977665612609","shop_cost_amount":0,"promotion_redpack_platform_amount":0,"inventory_type":"","post_amount":0,"second_cid":20140,"warehouse_ids":[],"product_id_str":"3765983868377760303","modify_amount":0,"sku_car_model_desc":"","pay_type":8,"order_type":0,"ship_time":0,"author_id":1160739690912255,"order_status":2,"is_comment":0,"pre_sale_type":0,"author_name":"富士INSTAX打印机旗舰店","promotion_amount":400,"cancel_reason":"","sku_yun_warehouse_info":[],"sku_period_purchase_info":{},"sku_cargo_future_stock":{"supply_sku_snapshots":[{"batch_detail":[{"arrive_time":0,"arrive_time_type":0,"inventory_type":0,"batch_id":0,"stock_num":2}],"inventory_type":0}]},"order_status_desc":"待发货","sku_id":3522534652620802,"order_type_desc":"普通订单","product_channel_info":{"product_channel_id":"","product_channel_type":0},"source_platform":"","bundle_sku_info":[],"platform_cost_amount":400,"promotion_talent_amount":0,"account_list":{"account_info":[]},"confirm_receipt_time":0,"out_sku_id":"","finish_time":0,"origin_id":"","third_cid":22252,"master_sku_order_id":"","room_id":7554660096526241000,"supplier_id":"","create_time":1758961198,"logistics_receipt_time":0,"inventory_type_desc":"","post_addr":{"city":{"id":"320500","name":"苏州市"},"town":{"name":"吴江区","id":"320509"},"street":{"name":"江陵街道","id":"3205090040001"},"encrypt_detail":"##qk33UOxk4cbxMdYO/RkAuepl7TSlmmedoFI3xm0pZtPBG8CqiXal0h92Epvy0H0AL8RnyxEUPMFACp0uQOuXOCrvhFyhj1he2JaXoV6dOCe0Yua5hYn6*CgYIASAHKAESPgo8gh9HjpSfiOmQBFxMTDcE08q/AeLP3KHxq4FAKqCUyG6E0fpz74OmWNxJv1gkSBIvtvneW81Ht+5itnp7GgA=#1##","province":{"id":"32","name":"江苏省"}},"b_type_desc":"抖音","promotion_redpack_talent_amount":0,"given_exp_ship_time":0,"update_time":1758961202,"given_exp_ship_time_desc":"","theme_type":"0","main_status_desc":"备货中","sku_customization_info":[],"sub_b_type_desc":"H5","out_warehouse_ids":[],"receive_type":0,"exp_ship_time":1759134001,"encrypt_post_tel":"$$kAoadPhfrqEMAPR87v8z5YBZhgAfJa0Lf5Ub6FJaX5Z0fB2msznrBShbH4+EHEy9vgN01amPi35bWg6ePgs2I1lazNcwxGfNV3aFvXghdiGuJw==*CgYIASAHKAESPgo89sqPwJIZpMPMgs72Lcx7x/OIwo5oKdTny5oGpdxNby5bw7QHHRO5vgsDPQByeK3Y3M/Ge4ZWX1LS660CGgA=$1$$","after_sale_info":{"refund_status":0,"after_sale_status":0,"after_sale_type":0},"order_expire_time":1800,"biz_desc":"小店","ad_env_type":"","serial_no_info":{"serial_no_list":[]},"promotion_shop_amount":0,"promotion_platform_amount":400,"product_id":3765983868377760300,"cid":0,"spec":[{"value":"哈利波特系列宽幅相纸边框贴","name":"规格名"}]},{"order_level":3,"promotion_pay_amount":0,"update_time":1759042710,"first_cid":20000,"send_pay_desc":"-","campaign_info":[{"share_discount_cost":{"platform_cost":0,"shop_cost":0,"author_cost":0,"third_platform_cost":0},"campaign_name":"2025年抖音商城中秋-立减直降","campaign_amount":0,"campaign_sub_type":1,"campaign_id":7547580654310359000,"campaign_type":7}],"account_list":{"account_info":[]},"pay_time":1758961200,"pay_type":8,"reduce_stock_type_desc":"下单减库存","post_addr":{"encrypt_detail":"##zzyyL9Hi/uYeEmcKlEz1gVQENvVfHPUag+NBv6ZADK7nxvK+fYQy4gNnc//GP9FVw+4A7kl/nnCd9aDodWvxptyPlWs5G5wu66mpj4LXKazga9hYrI0K*CgYIASAHKAESPgo8/1nI6Pc6QSdA8OOcamRuDZcQKYcSHr1YlpExhau3JGfbuuWmQYV3r4mgHmt8VsChr8fvSsrRoybmacInGgA=#1##","province":{"name":"江苏省","id":"32"},"city":{"id":"320500","name":"苏州市"},"town":{"name":"吴江区","id":"320509"},"street":{"name":"江陵街道","id":"3205090040001"}},"sub_b_type_desc":"H5","inventory_type_desc":"","app_id":1128,"sum_amount":4900,"promotion_redpack_talent_amount":0,"out_product_id":"0","c_biz_desc":"小店自卖","need_serial_number":true,"sku_yun_warehouse_info":[],"sku_period_purchase_info":{},"sku_customization_info":[],"b_type":2,"confirm_receipt_time":0,"page_id":0,"order_status_desc":"已关闭","order_id":"6921434904369397467","supplier_id":"","product_channel_info":{"product_channel_type":0,"product_channel_id":""},"out_warehouse_ids":[],"room_id_str":"7554660096526240539","master_sku_order_id":"","promotion_talent_amount":0,"order_amount":4900,"sku_id":3533677603907586,"second_cid":20140,"source_platform":"","goods_type":0,"post_insurance_amount":0,"encrypt_post_tel":"$$yq/Rx1TuJXvRQssQm0cK8EJj8p1VxOhMsyT+RLWThJqrL5RNIH2EtdAMJIRqclFbzgEJ45QLNq/0ZVE4U28JzRpdyVzKDn7ZMS8NLMCmlZMHBw==*CgYIASAHKAESPgo8l2ZaGItaMOOVPr7QIAp8fdLyjRi+I7kqdqOv7iplizWsQQqNfBTW78IuhltGvu2Mn03Y45hxtlK5CnWEGgA=$1$$","product_pic":"https://p3-aio.ecombdimg.com/obj/ecom-shop-material/png_m_1a25712e18099dd2c1ba8f7978b5890d_sx_710865_www800-800","has_tax":false,"sub_b_type":3,"parent_order_id":"6921434904368742107","promotion_amount":613,"sku_order_tag_ui":[{"sort":0,"extra":"","key":"is_platform_free","text":"活动包邮","hover_text":"该商品下单时报名了平台包邮活动，活动期间商家为活动商品收货地址为中国大陆（不包括内蒙古、甘肃、青海、宁夏、新疆、西藏、海南、中国香港、中国澳门、中国台湾）提供包邮服务，具体规则请查看活动详情","tag_type":"","help_doc":""},{"tag_type":"","help_doc":"https://school.jinritemai.com/doudian/web/article/aHwH9wK4Je2N","sort":0,"extra":"","key":"delay_send_pay_money","text":"晚发即赔","hover_text":""},{"text":"7天","hover_text":"","tag_type":"","help_doc":"https://school.jinritemai.com/doudian/web/article/101835?from=shop_article","sort":0,"extra":"","key":"supply_7day_return_label"},{"key":"quick_refund_label","text":"极速退","hover_text":"","tag_type":"","help_doc":"https://school.jinritemai.com/doudian/web/article/101792?from=shop_article","sort":0,"extra":""},{"hover_text":"达人通过「我的店铺」、或通过链接添加人店一体店铺商品（无官方店铺情况下，添加渠道号店铺商品也算）到橱窗、视频、直播，产生的订单为自卖订单","tag_type":"grey","help_doc":"","sort":0,"extra":"","key":"c_biz_self_sell","text":"小店自卖"},{"tag_type":"grey","help_doc":"","sort":0,"extra":"","key":"compass_source_not_ad_mark","text":"非广告","hover_text":"该订单通过自然流量成交"},{"text":"直播","hover_text":"该订单通过直播方式成交，2023/3/1起创建的订单，将于第二天更新。更多流量来源请在订单导出明细查看","tag_type":"grey","help_doc":"","sort":0,"extra":"{\"compass_first_level_entrance\":\"recommend_live\",\"compass_first_level_entrance_text\":\"直播推荐\"}","key":"compass_source_content_type_live"}],"send_pay":0,"origin_amount":4900,"modify_amount":0,"finish_time":0,"inventory_type":"","order_expire_time":1800,"relation_order":{"write_off_no":"","relation_order_id":""},"fourth_cid":0,"pre_sale_type":0,"code":"6977665612661","inventory_list":[{"out_warehouse_id":"","inventory_type":1,"inventory_type_desc":"普通库存","count":1,"warehouse_type":0,"warehouse_name":"","warehouse_id":""}],"post_amount":0,"writeoff_info":[],"sku_cargo_future_stock":{"supply_sku_snapshots":[{"inventory_type":0,"batch_detail":[{"stock_num":1,"arrive_time":0,"arrive_time_type":0,"inventory_type":0,"batch_id":0}]}]},"room_id":7554660096526241000,"modify_post_amount":0,"trade_type_desc":"普通","theme_type":"0","logistics_receipt_time":0,"shop_cost_amount":0,"spec":[{"name":"规格名","value":"12色丙烯马克笔（组合产品 请勿单独购买）"}],"video_id":"","theme_type_desc":"-","warehouse_ids":[],"encrypt_post_receiver":"##RCCLo7FeMekqZQNcyNIQp7aC1fllWMdY5sI/qkGe6DWcDbxWx15H8YQgCvCW2J3LhoAlU0LXZm69k+vPM7qTG1lRCMJsWJUX/u8nQAOFwbk=*CgYIASAHKAESPgo8Yb0BQD6yVFAkXtGD5LkoMYyaY2pRWFbtSz1HhC/0Gj+pbFXhiHN07k+zPEwrxKLR183ihvOYCOCuSBD7GgA=#1##","card_voucher":{"valid_end":0,"valid_days":0,"valid_start":0},"promotion_redpack_amount":0,"promotion_pay_amount_details":[{"pay_promotion_type":"","share_cost":{"platform_cost":0,"shop_cost":0}}],"promotion_shop_amount":0,"out_sku_id":"","trade_type":0,"biz":2,"channel_payment_no":"2105012509270601071450256186","exp_ship_time":1759134001,"promotion_detail":{"kol_discount_detail":{"full_discount_amount":0,"coupon_info":[],"full_discount_info":[],"redpack_amount":0,"redpack_info":[],"total_amount":0,"coupon_amount":0},"shop_discount_detail":{"full_discount_info":[],"total_amount":0,"coupon_amount":0,"full_discount_amount":0,"coupon_info":[]},"platform_discount_detail":{"redpack_amount":0,"official_deduction_amount":0,"user_balance_amount":0,"total_amount":613,"gold_coin_amount":0,"coupon_amount":613,"redpack_info":[],"full_discount_amount":0,"full_discount_info":[],"coupon_info":[{"coupon_id":7554663142283428000,"coupon_type":3,"coupon_meta_id":"7550521393004347675","coupon_amount":613,"coupon_name":"平台中秋消费券","share_discount_cost":{"author_cost":0,"platform_cost":613,"shop_cost":0}}],"allowance_amount":0}},"ship_time":0,"serial_no_info":{"serial_no_list":[]},"after_sale_info":{"refund_status":3,"after_sale_status":12,"after_sale_type":2},"given_product_type":"","order_status":4,"promotion_platform_amount":613,"gov_subsidy_detail111":{},"item_num":1,"author_id":1160739690912255,"appointment_ship_time":0,"given_exp_ship_time_desc":"","platform_cost_amount":613,"receive_type":0,"order_type_desc":"普通订单","promotion_redpack_platform_amount":0,"is_comment":0,"author_name":"富士INSTAX打印机旗舰店","goods_price":4900,"reduce_stock_type":1,"cid":0,"product_name":"富士INSTAX x Touchmark  12色丙烯马克笔 组合产品 请勿单拍","pay_amount":4287,"bundle_sku_info":[],"order_type":0,"main_status_desc":"发货前退款完成","product_id_str":"3769189878877782371","biz_desc":"小店","c_biz":8,"product_id":3769189878877782500,"cancel_reason":"","create_time":1758961198,"origin_id":"","main_status":21,"sku_car_model_desc":"","given_exp_ship_time":0,"b_type_desc":"抖音","third_cid":22252,"content_id":"7554660096526240539","ad_env_type":""}],"early_arrival":false,"promise_info":"{\"identifier\":\"S#2025-09-29\"}","post_origin_amount":0,"mask_post_receiver":"蒋*","channel_payment_no":"2105012509270601071450256186","promotion_redpack_amount":0,"latest_receipt_time":0,"shop_period_purchase_info":{},"user_id_info":{},"user_coordinate":{"user_coordinate_longitude":"120.660866","user_coordinate_latitude":"31.148378"},"shop_order_tag_ui":[],"biz":2,"order_level":2,"pay_time":1758961200,"user_icon":"","post_insurance_amount":0,"pay_amount":23700,"promotion_platform_amount":2500,"sub_b_type_desc":"H5","recommend_end_ship_time":0,"appointment_ship_time":0,"promotion_redpack_talent_amount":0,"exp_ship_time":1759134001}}';
//        $string = '{"shop_order_detail":{"shop_period_purchase_info":{},"order_status":3,"open_id":"","seller_words":"","trade_type_desc":"普通","promotion_pay_amount":10,"promotion_redpack_talent_amount":0,"biz_desc":"小店","post_insurance_amount":0,"total_promotion_amount":0,"pay_time":1759121823,"pay_type":8,"exp_ship_time":1759294623,"pay_amount":4690,"trade_type":0,"order_amount":4690,"early_arrival":false,"post_addr":{"province":{"name":"上海市","id":"31"},"city":{"name":"上海市","id":"310000"},"town":{"id":"310115","name":"浦东新区"},"street":{"id":"3101150160001","name":"花木街道"},"encrypt_detail":"##AEypeY8PSSiuYgd3vYPy82eOVrg1n8oqCqjvakDV2AgaZsBuqY3r2LjSR7vgeACuoHbrvM4Hlzjh9wnQZpHcRgveHv6VJAfCm53dN5DYl7h+PX6hoqN6Yyy7dwzjt8ln9fJE3PYt5Nm2TuGhUROACR5L*CgYIASAHKAESPgo8W0s/V7mWhpyhjkjn7otlVZjegvnTUBARD5b4K//jEDkD5am4Um0XrLrXQ5D4x05nTTgqbg9wAENOA9OHGgA=#1##"},"order_level":2,"finish_time":0,"serial_number_list":[],"user_icon":"","promotion_redpack_amount":0,"mask_post_addr":{"detail":"*********************","province":{"name":"上海市","id":"31"},"city":{"name":"上海市","id":"310000"},"town":{"name":"浦东新区","id":"310115"},"street":{"name":"花木街道","id":"3101150160001"}},"only_platform_cost_amount":0,"user_id_info":{},"shop_order_tag_ui":[],"appointment_ship_time":0,"order_id":"6921483125167455612","sku_order_list":[{"c_biz_desc":"-","sku_customization_info":[],"relation_order":{"write_off_no":"","relation_order_id":""},"origin_amount":4690,"master_sku_order_id":"","trade_type":0,"product_channel_info":{"product_channel_type":0,"product_channel_id":""},"goods_price":4690,"pay_time":1759121823,"receive_type":0,"account_list":{"account_info":[]},"given_exp_ship_time_desc":"","source_platform":"","theme_type":"1","is_comment":0,"campaign_info":[],"product_id_str":"3579165214815452892","writeoff_info":[],"main_status_desc":"已全部发货","reduce_stock_type":3,"pre_sale_type":0,"encrypt_post_receiver":"##lV2krHyG0StR6urQFyAXeQeI/eEzkGfTr70zNjJ65CBR8E0wGy7H3LavzqH74Zyv8GLrf8WGp6S7e5t6bntvsZRl5Vo9C+1G5SyH7v4=*CgYIASAHKAESPgo8o5cyaSuyf+Ipzc0aGjzCdGfeB2tXaYjwiGt1nbFiKfXmLGROytrjbIZ7aPvWydmT7Ly8rERYW9zVmWKFGgA=#1##","sku_period_purchase_info":{},"main_status":3,"room_id_str":"7555278711268838194","has_tax":false,"fourth_cid":0,"inventory_type":"","out_product_id":"0","spec":[{"name":"颜色分类","value":"中号12组"}],"sku_order_tag_ui":[{"sort":0,"extra":"","key":"delay_send_pay_money","text":"晚发即赔","hover_text":"","tag_type":"","help_doc":"https://school.jinritemai.com/doudian/web/article/aHwH9wK4Je2N"},{"extra":"","key":"supply_7day_return_label","text":"7天","hover_text":"","tag_type":"","help_doc":"https://school.jinritemai.com/doudian/web/article/101835?from=shop_article","sort":0},{"key":"quick_refund_label","text":"极速退","hover_text":"","tag_type":"","help_doc":"https://school.jinritemai.com/doudian/web/article/101792?from=shop_article","sort":0,"extra":""}],"sku_id":3490805278481154,"origin_id":"805307695235640_7555278711268838194_3579165214815452892","confirm_receipt_time":0,"given_exp_ship_time":0,"sku_yun_warehouse_info":[],"order_level":3,"pay_amount":4690,"c_biz":0,"need_serial_number":false,"pay_type":8,"ship_time":1759127541,"sub_b_type_desc":"电商SDK-头条","post_addr":{"street":{"name":"花木街道","id":"3101150160001"},"encrypt_detail":"##ZWjLZxGznMMvA0ywm6FBSbyC5bnjuem7lmOU3RBeccGyF7GR2WQpidnSDnes99RzwAKVdbLUm1OkiWUwNhrjJslmvsRBkBAhmab1KYFZv/zgHlNP1hQRwjhJLq/5t9OUpEnjRHHic2viLralKQbW/cZ1*CgYIASAHKAESPgo8cFh1uaJC5M/zXC95KW+4Ztul8feagqvFeiikrXNXOhsg7Pa1k6Y2aROcCrNuw2+n8VvhMweoHRnGeHpeGgA=#1##","province":{"name":"上海市","id":"31"},"city":{"id":"310000","name":"上海市"},"town":{"id":"310115","name":"浦东新区"}},"promotion_amount":0,"finish_time":0,"biz":2,"ad_env_type":"live","promotion_detail":{"platform_discount_detail":{"full_discount_amount":0,"redpack_info":[],"allowance_amount":0,"coupon_amount":0,"total_amount":0,"official_deduction_amount":0,"gold_coin_amount":0,"full_discount_info":[],"coupon_info":[],"redpack_amount":0,"user_balance_amount":0},"kol_discount_detail":{"redpack_amount":0,"redpack_info":[],"total_amount":0,"coupon_amount":0,"full_discount_amount":0,"coupon_info":[],"full_discount_info":[]},"shop_discount_detail":{"coupon_amount":0,"full_discount_amount":0,"coupon_info":[],"full_discount_info":[],"total_amount":0}},"sku_cargo_future_stock":{"supply_sku_snapshots":[{"batch_detail":[{"arrive_time_type":0,"inventory_type":0,"batch_id":0,"stock_num":1,"arrive_time":0}],"inventory_type":0}]},"order_status":3,"promotion_shop_amount":0,"promotion_talent_amount":0,"b_type":29,"second_cid":21413,"after_sale_info":{"refund_status":0,"after_sale_status":0,"after_sale_type":0},"out_sku_id":"","create_time":1759121822,"out_warehouse_ids":[],"bundle_sku_info":[],"promotion_redpack_talent_amount":0,"theme_type_desc":"直播间","card_voucher":{"valid_end":0,"valid_days":0,"valid_start":0},"order_expire_time":1800,"shop_cost_amount":0,"promotion_pay_amount":10,"cancel_reason":"","author_name":"3M官方旗舰店直播间","exp_ship_time":1759294623,"code":"6912504240636","goods_type":0,"order_id":"6921483125167455612","post_amount":0,"serial_no_info":{"serial_no_list":[]},"product_name":"3M正品魔力扣挂画神器吧唧上墙手办盒钉相框蘑菇头压敏胶无痕","item_num":1,"sub_b_type":13,"biz_desc":"小店","content_id":"0","promotion_pay_amount_details":[{"pay_promotion_type":"charge","share_cost":{"shop_cost":0,"platform_cost":10}}],"author_id":805307695235640,"product_id":3579165214815452892,"sku_car_model_desc":"","third_cid":27577,"product_pic":"https://p3-aio.ecombdimg.com/obj/ecom-shop-material/jpeg_m_c78a6785578a8354ba7e0235249ae6a0_sx_71510_www814-814","order_status_desc":"已发货","post_insurance_amount":0,"promotion_redpack_amount":0,"platform_cost_amount":0,"modify_post_amount":0,"warehouse_ids":[],"parent_order_id":"6921483125167455612","supplier_id":"","appointment_ship_time":0,"encrypt_post_tel":"$$Sa1ogo6LNA7o6QF/AxpK1ZUKZQ4jXSo3+kPhxKzIQh42uNpr5wvKvF3nV+2DLmcoSEmv6V6Xzu4j6anYzRSDc+vI0Jg5SE4wVk1EWaiS0JBAGA==*CgYIASAHKAESPgo86trJ2odAz9Zq+yOtkfPSuOCTuZ/Jrhtmq2cPMHN1lpU4BMKZSDHKu1jbrtMvoF6JrJ7uYzZKSHeq15IXGgA=$1$$","logistics_receipt_time":0,"b_type_desc":"电商SDK","promotion_platform_amount":0,"room_id":7555278711268838194,"first_cid":20076,"order_amount":4690,"promotion_redpack_platform_amount":0,"order_type":0,"send_pay":0,"gov_subsidy_detail111":{},"video_id":"","inventory_list":[{"warehouse_type":0,"warehouse_name":"","warehouse_id":"","out_warehouse_id":"","inventory_type":1,"inventory_type_desc":"普通库存","count":1}],"given_product_type":"","inventory_type_desc":"","sum_amount":4690,"channel_payment_no":"2105012509290601082290344977","page_id":0,"app_id":7386,"send_pay_desc":"-","cid":1844506406721843,"modify_amount":0,"update_time":1759127541,"reduce_stock_type_desc":"支付减库存预占","order_type_desc":"普通订单","trade_type_desc":"普通"}],"user_tag_ui":[{"key":"user_profile_buy_frequency","text":"服务优先"},{"key":"user_profile_shop_customer_type","text":"店铺新客"}],"biz":2,"tax_amount_not_come_out":0,"user_coordinate":{"user_coordinate_longitude":"121.562988","user_coordinate_latitude":"31.232674"},"order_phase_list":[],"encrypt_post_receiver":"##cewUio920AL2dDjqJr8UmnRD9XcA17FH+teNtSWVaq8bZK+6Z4IBjNyxceN097O/GuUfKMK7WV6JTcLKzjo+xVnKl5Mk9xRlOCw7cmU=*CgYIASAHKAESPgo8zpSUt+JV4ai4qe2TP28Jp2jez0J/ZkjLAYh+LDWjUHBEsnn5AIW7EPAwNYgmNAMHb+id75vvYpoWL0FuGgA=#1##","b_type":29,"promotion_detail":{"platform_discount_detail":{"coupon_amount":0,"user_balance_amount":0,"full_discount_amount":0,"gold_coin_amount":0,"allowance_amount":0,"coupon_info":[],"full_discount_info":[],"redpack_info":[],"total_amount":0,"official_deduction_amount":0,"redpack_amount":0},"kol_discount_detail":{"coupon_info":[],"full_discount_info":[],"redpack_amount":0,"redpack_info":[],"total_amount":0,"coupon_amount":0,"full_discount_amount":0},"shop_discount_detail":{"coupon_info":[],"full_discount_info":[],"total_amount":0,"coupon_amount":0,"full_discount_amount":0}},"promotion_shop_amount":0,"receipt_date":"","order_expire_time":1800,"promotion_platform_amount":0,"seller_remark_stars":0,"ship_time":1759127541,"order_operate_record_list":[],"order_type":0,"shop_name":"3M官方旗舰店","create_time":1759121822,"author_cost_amount":0,"modify_post_amount":0,"modify_amount":0,"mask_post_receiver":"李*","main_status_desc":"已全部发货","shop_cost_amount":0,"recommend_end_ship_time":0,"promotion_talent_amount":0,"cancel_reason":"","post_origin_amount":0,"open_address_id":"#i6JkLmU0gFIufq+1JUDkLgLzCf5MWJz/EEsYBM8bycycgUV9iBWVTExWnXdX1j4EVQcnMs52BT9KGi4h+VNkEG3Gt6WdIo/1sgYt44AztmqKi7qwnmOPtOMmOULaZh9dPSk0eaBZvGE=","target_arrival_time":0,"order_type_desc":"普通订单","latest_receipt_time":0,"shop_id":25079685,"channel_payment_no":"2105012509290601082290344977","buyer_words":"","user_nick_name":"","aweme_id":"","promise_detail":{"recommend_logistics_list":[],"promise_type":1,"promise_time_detail":{"promise_appointment_ship_time":0,"promise_exp_ship_time":1759294623}},"main_status":3,"consolidate_info":{},"post_promotion_amount":0,"recommend_start_ship_time":0,"sub_b_type_desc":"电商SDK-头条","address_tag_ui":[],"logistics_info":[{"ship_time":1759127541,"tracking_no":"76745636520464","delivery_id":"147156741344013662","company_name":"中通快递","added_services":[],"product_info":[{"product_count":1,"product_id_str":"3579165214815452892","sku_specs":[{"name":"颜色分类","value":"中号12组"}],"outer_sku_id":"","price":4690,"product_name":"3M正品魔力扣挂画神器吧唧上墙手办盒钉相框蘑菇头压敏胶无痕","sku_id":3490805278481154,"sku_order_id":"6921483125167455612","product_id":3579165214815452892}],"company":"zhongtong"}],"promotion_redpack_platform_amount":0,"sub_b_type":13,"d_car_shop_biz_data":{"poi_adname":"","poi_id":"","poi_name":"","poi_addr":"","poi_tel":"","coupon_right":[],"poi_pname":"","poi_city_name":""},"promise_info":"{\"identifier\":\"S#2025-10-01\"}","order_status_desc":"已发货","encrypt_post_tel":"$$3vHIY2bId0MaLNlQN+pjMfTncNyJw6b9KvW6RpkK9g963k4+X8lBTDEHrChfIhJSXmzgbCf9aVHuD6Yfm8xaA+4PXQB0/iDyxn+IcyyIniVWxg==*CgYIASAHKAESPgo8KifUQdqBPBj8ebmNh7G19WPdJlYFRuGtUAKNBq1dP7+NoSW32jsCi1uLIxJpFqGNFPh0Pq1hur2ddCCaGgA=$1$$","mask_post_tel":"1**********","promotion_amount":0,"earliest_receipt_time":0,"update_time":1759127541,"b_type_desc":"电商SDK","order_tag111":{},"doudian_open_id":"1@#KDAbH/x+DK0irBtowyaeVF5v5SNm50NR9zDE3Ay/zmXCb73tg3duWgPROMr28I9GrCE=","platform_cost_amount":0,"post_amount":0,"app_id":7386}}';
        $string = '{"shop_order_detail":{"shop_cost_amount":0,"consolidate_info":{},"cancel_reason":"","only_platform_cost_amount":0,"user_nick_name":"","order_level":2,"main_status":3,"earliest_receipt_time":0,"app_id":1128,"shop_order_tag_ui":[{"text":"到店自提","help_doc":"","key":"pick_up_at_store"}],"sku_order_list":[{"encrypt_post_receiver":"##h1qQpp/rwyl58tQUz2p5JwLrKjCF9WXI+1s5iaEb2o7P27gwMwuLD+m/w3/KLPsuYDQ45sG0sscMysBk+6bZHzpWqm1bX9rYCbyEEKo3fQ==*CgYIASAHKAESPgo8g7ZsLeWSJEVcpV07/LUNOIv8Optensthn2BQSbdrZHv933C4XULQBB4VDQE8EvB0uPyVQsGOODy6iUBWGgA=#1##","ad_env_type":"","pay_amount":300000,"product_pic":"https://p3-aio.ecombdimg.com/obj/ecom-shop-material/jpeg_m_162ab3b75464cef267de55ff7a1ad199_sx_307142_www800-800","b_type_desc":"抖音","sku_customization_info":[],"gov_subsidy_detail111":{},"product_id_str":"3776929689008996809","biz_desc":"核销","promotion_redpack_platform_amount":0,"c_biz_desc":"小店自卖","promotion_redpack_amount":0,"out_warehouse_ids":[],"reduce_stock_type":3,"origin_amount":300000,"sku_yun_warehouse_info":[],"send_pay":0,"out_sku_id":"","main_status_desc":"已全部发货","writeoff_info":[],"page_id":0,"sum_amount":300000,"appointment_ship_time":0,"sku_id":3561644964386050,"origin_id":"99514375927_3776929689008996809","inventory_type":"","content_id":"0","serial_no_info":{"serial_no_list":[]},"exp_ship_time":0,"relation_order":{"write_off_no":"","relation_order_id":""},"shop_cost_amount":0,"promotion_talent_amount":0,"post_amount":0,"app_id":1128,"encrypt_post_tel":"$$wWxq7OmZDIa15DKEhwsMAHF5DBBzh6xskQjsHfI4fs9+lvWVDptnc5F3bVbANyujfWfarC7pXfQ5xsfBDCL3CnaZebX5fDg1JJxNksyEJNEO*CgYIASAHKAESPgo8gmpRpEOk3LPWOgMJCD4vfnBuxXHHslMUb3eUPt0eUJg9brFwXkiktgj7TsZW+u1W+3IqxKpVXA9wt42uGgA=$1$$","inventory_list":[{"warehouse_type":0,"warehouse_name":"","warehouse_id":"","out_warehouse_id":"","inventory_type":1,"inventory_type_desc":"普通库存","count":1}],"second_cid":37685,"account_list":{"account_info":[]},"out_product_id":"0","bundle_sku_info":[],"order_type_desc":"平台发码订单","sku_order_tag_ui":[{"hover_text":"","tag_type":"","help_doc":"","sort":0,"extra":"","key":"refund_anytime","text":"随时退"},{"extra":"","key":"auto_refund","text":"过期退","hover_text":"","tag_type":"","help_doc":"","sort":0},{"help_doc":"","sort":0,"extra":"","key":"unsupport_7days_refund","text":"不支持7天","hover_text":"不支持7天无理由","tag_type":"grey"},{"key":"c_biz_self_sell","text":"小店自卖","hover_text":"达人通过「我的店铺」、或通过链接添加人店一体店铺商品（无官方店铺情况下，添加渠道号店铺商品也算）到橱窗、视频、直播，产生的订单为自卖订单","tag_type":"grey","help_doc":"","sort":0,"extra":""},{"help_doc":"","sort":0,"extra":"","key":"compass_source_not_ad_mark","text":"非广告","hover_text":"该订单通过自然流量成交","tag_type":"grey"},{"sort":0,"extra":"{\"compass_first_level_entrance_text\":\"店铺页面\",\"compass_first_level_entrance\":\"store\"}","key":"compass_source_content_type_product_card","text":"商品卡","hover_text":"该订单通过商品卡方式成交，2023/3/1起创建的订单，将于第二天更新。更多流量来源请在订单导出明细查看","tag_type":"grey","help_doc":""}],"reduce_stock_type_desc":"支付减库存预占","room_id_str":"0","third_cid":0,"modify_post_amount":0,"main_status":3,"warehouse_ids":[],"product_name":"全新纯电CLA购车意向金","inventory_type_desc":"","create_time":1759837181,"sub_b_type":3,"sku_car_model_desc":"","cid":0,"parent_order_id":"6946784269424661508","theme_type_desc":"-","sku_period_purchase_info":{},"order_amount":300000,"author_name":"","theme_type":"0","confirm_receipt_time":0,"code":"CLA300L-197U","master_sku_order_id":"","need_serial_number":false,"order_status_desc":"待使用","c_biz":8,"fourth_cid":0,"post_insurance_amount":0,"given_product_type":"","trade_type":0,"room_id":0,"first_cid":34091,"promotion_pay_amount":0,"finish_time":0,"promotion_platform_amount":0,"product_channel_info":{"product_channel_id":"","product_channel_type":0},"biz":7,"platform_cost_amount":0,"is_comment":0,"promotion_pay_amount_details":[],"promotion_amount":0,"given_exp_ship_time":0,"goods_type":0,"promotion_shop_amount":0,"spec":[{"name":"规格","value":"超长续航领智版"},{"name":"颜色","value":"曜岩黑色"}],"sku_cargo_future_stock":{"supply_sku_snapshots":[{"batch_detail":[{"arrive_time":0,"arrive_time_type":0,"inventory_type":0,"batch_id":0,"stock_num":1}],"inventory_type":0}]},"pay_type":2,"source_platform":"","post_addr":{"street":{"id":"","name":""},"encrypt_detail":"","province":{},"city":{},"town":{}},"sub_b_type_desc":"H5","order_level":3,"author_id":0,"video_id":"","promotion_detail":{"kol_discount_detail":{"total_amount":0,"coupon_amount":0,"full_discount_amount":0,"coupon_info":[],"full_discount_info":[],"redpack_amount":0,"redpack_info":[]},"shop_discount_detail":{"coupon_amount":0,"full_discount_amount":0,"coupon_info":[],"full_discount_info":[],"total_amount":0},"platform_discount_detail":{"redpack_info":[],"allowance_amount":0,"official_deduction_amount":0,"full_discount_info":[],"gold_coin_amount":0,"user_balance_amount":0,"full_discount_amount":0,"total_amount":0,"coupon_amount":0,"coupon_info":[],"redpack_amount":0}},"pay_time":1759837190,"promotion_redpack_talent_amount":0,"trade_type_desc":"普通","item_num":1,"has_tax":false,"order_type":4,"goods_price":300000,"given_exp_ship_time_desc":"","ship_time":1759837191,"after_sale_info":{"after_sale_type":0,"refund_status":0,"after_sale_status":0},"order_id":"6946784269424661508","card_voucher":{"valid_end":1767196799,"valid_days":0,"valid_start":1758729600},"channel_payment_no":"2025100723001474761406600538","pre_sale_type":0,"order_status":3,"logistics_receipt_time":0,"update_time":1759837192,"receive_type":0,"order_expire_time":1800,"send_pay_desc":"-","modify_amount":0,"cancel_reason":"","product_id":3776929689008997000,"campaign_info":[],"b_type":2,"supplier_id":""}],"recommend_end_ship_time":0,"author_cost_amount":0,"order_id":"6946784269424661508","channel_payment_no":"2025100723001474761406600538","pay_type":2,"trade_type_desc":"普通","promotion_redpack_talent_amount":0,"post_addr":{"province":{},"city":{},"town":{},"street":{"id":"","name":""},"encrypt_detail":""},"modify_amount":0,"recommend_start_ship_time":0,"shop_name":"梅赛德斯-奔驰官方旗舰店","user_coordinate":{},"ship_time":1759837191,"pay_amount":300000,"total_promotion_amount":0,"modify_post_amount":0,"early_arrival":false,"exp_ship_time":0,"promotion_redpack_amount":0,"platform_cost_amount":0,"doudian_open_id":"1@#85VxjK5WQLjkJvBJQ4JjYenif5FD/RBRxnf7Fga4K+exDhow2svgGEEeR1y86pn59hojdwcC","latest_receipt_time":0,"target_arrival_time":0,"open_address_id":"#Nj/bOGQ4vN/fsBcjqg32fk7+iAGorhQH8H7QEg/imGCNgH81KYt9T8TDXtpti0i6azQwTK08FgVcddVrwDhf6zWSdHcoDv8koMs0pKgLPsd+H3oWEx7NkPMRHZA2w98cHCZOpFz2Jg==","finish_time":0,"promise_info":"{}","sub_b_type_desc":"H5","open_id":"","biz":7,"promise_detail":{"recommend_logistics_list":[],"promise_time_detail":{}},"logistics_info":[],"trade_type":0,"pay_time":1759837190,"order_amount":300000,"b_type":2,"user_icon":"","seller_words":"","mask_post_tel":"1**********","promotion_shop_amount":0,"order_status_desc":"待使用","promotion_pay_amount":0,"update_time":1759837192,"create_time":1759837181,"d_car_shop_biz_data":{"poi_addr":"","poi_tel":"","coupon_right":[],"poi_pname":"","poi_city_name":"","poi_adname":"","poi_id":"","poi_name":""},"promotion_talent_amount":0,"aweme_id":"","post_promotion_amount":0,"address_tag_ui":[],"promotion_detail":{"shop_discount_detail":{"full_discount_amount":0,"coupon_info":[],"full_discount_info":[],"total_amount":0,"coupon_amount":0},"platform_discount_detail":{"gold_coin_amount":0,"redpack_amount":0,"official_deduction_amount":0,"allowance_amount":0,"total_amount":0,"coupon_info":[],"redpack_info":[],"user_balance_amount":0,"full_discount_amount":0,"full_discount_info":[],"coupon_amount":0},"kol_discount_detail":{"redpack_info":[],"total_amount":0,"coupon_amount":0,"full_discount_amount":0,"coupon_info":[],"full_discount_info":[],"redpack_amount":0}},"serial_number_list":[],"order_type":4,"biz_desc":"核销","mask_post_receiver":"龚*","b_type_desc":"抖音","mask_post_addr":{"town":{},"street":{"id":"","name":""},"detail":"","province":{},"city":{}},"post_amount":0,"shop_id":6416336,"post_insurance_amount":0,"order_tag111":{},"order_phase_list":[],"sub_b_type":3,"user_id_info":{},"promotion_redpack_platform_amount":0,"encrypt_post_receiver":"##1G8x00glcrN3ZniguUqxXj/ZyM6rxnre6iSYZ2Z7sICD86fzBIbAcXCp1I1rEXfKXFQJL3PYQxymR3z0ych+RNnEWR9r7vRcD/3j369igA==*CgYIASAHKAESPgo89qHEMSLs7uO5tJ3PNU5I8+1LFydJOf6QtdsaLp/jrB3H61lVmvjfdSkx23xK2TLEUVsX7S0oBwjOA6VlGgA=#1##","seller_remark_stars":0,"receipt_date":"","encrypt_post_tel":"$$yi79rjqSTDiJT80V+Twh1Ca54864eNOQw88DL49ANswLuzR8zym4XOBckoCVmBbSk742FZK2hI/pWWaHnZemA3Xs4sTgYcyodEct88E7qzLk*CgYIASAHKAESPgo8Q0iMi5XduDApoKq2qBRa7f19D2sdt5mAyFVr1Hi3BcDopUhx3RRKm3x9DxNR3b/TaN7A5ZZEifwLXW8XGgA=$1$$","order_status":3,"main_status_desc":"已全部发货","order_expire_time":1800,"appointment_ship_time":0,"post_origin_amount":0,"user_tag_ui":[{"key":"user_profile_shop_customer_type","text":"店铺老客"}],"buyer_words":"","order_type_desc":"平台发码订单","shop_period_purchase_info":{},"promotion_amount":0,"order_operate_record_list":[],"promotion_platform_amount":0,"tax_amount_not_come_out":0}}';

        $data = json_decode($string, true);

        $storeInfo = '{"sku_store_info":"{\"store_id\":245299762,\"store_name\":\"潍坊利之星汽车服务有限公司\",\"store_tel\":\"0536-2278999\",\"store_address\":{\"province\":{\"code\":\"37\",\"name\":\"山东省\"},\"city\":{\"code\":\"370700\",\"name\":\"潍坊市\"},\"town\":{\"code\":\"370703\",\"name\":\"寒亭区\"},\"street\":{\"code\":\"370703002\",\"name\":\"开元街道\"},\"detail\":\"渤海路5111号\"},\"store_tag_map\":{\"use_store_stock\":\"false\"}}"}';
        $data['shop_order_detail']['sku_order_list'][0]['sku_order_tag_ui'][] = [
            "key" => "store_info",
            "text" => "",
            "hover_text" => "",
            "tag_type" => "",
            "help_doc" => "",
            "sort" => 0,
            "extra" => json_encode(json_decode($storeInfo, true))
        ];

        return [
            "data" => $data,
            "code" => 10000,
            "msg" => "success",
            "sub_code" => "",
            "sub_msg" => ""
        ];

        $order_id = $this->requestData['shop_order_id'] ?? sprintf('MockDY%s', time());

        $sku_order = [
            "account_list" => [],
            "ad_env_type" => "live",
            "after_sale_info" => [
                "after_sale_status" => "6",
                "after_sale_type" => "1",
                "refund_status" => "1"
            ],
            "app_id" => "43545454556",
            "appointment_ship_time" => "1617355413",
            "author_cost_amount" => "100",
            "author_id" => "341234",
            "author_name" => "XXXX",
            "b_type" => "1",
            "b_type_desc" => "抖音",
            "biz" => "1",
            "biz_desc" => "鲁班",
            "bundle_sku_info" => [],
            "c_biz" => "1",
            "c_biz_desc" => "小店自卖",
            "campaign_info" => [],
            "cancel_reason" => "不想要",
            "card_voucher" => [],
            "channel_payment_no" => "PAY234532534534",
            "cid" => "43545454556",
            "code" => "43564553",
            "confirm_receipt_time" => "1617355413",
            "content_id" => "43545454556",
            "contract_info" => [],
            "create_time" => time(),
            "encrypt_post_receiver" => "张三",
            "encrypt_post_tel" => "12345678911",
            "exp_ship_time" => "1617355413",
            "finish_time" => "1617355413",
            "first_cid" => "20005",
            "fourth_cid" => "20174",
            "given_product_activity_info" => [],
            "given_product_type" => "FREE",
            "goods_price" => "100",
            "goods_type" => "1",
            "has_tax" => "true",
            "inventory_list" => [],
            "inventory_type" => "2",
            "inventory_type_desc" => "普通库存",
            "is_activity" => "false",
            "is_comment" => "1",
            "item_num" => $this->item_num,
            "logistics_receipt_time" => "1617355413",
            "main_status" => $this->orderMainStatus,
            "main_status_desc" => "部分支付",
            "mask_post_addr" => [
                "city" => [
                    "id" => "110000",
                    "name" => "市辖区"
                ],
                "detail" => "***",
                "province" => [
                    "id" => "110000",
                    "name" => "北京市"
                ],
                "street" => [
                    "id" => "110000",
                    "name" => "中关村街道"
                ],
                "town" => [
                    "id" => "110000",
                    "name" => "海淀区"
                ]
            ],
            "mask_post_receiver" => "王**",
            "mask_post_tel" => "1********35",
            "master_sku_order_id" => "1",
            "master_sku_order_id_list" => "[\"4781320682406083640\"]",
            "modify_amount" => 0,
            "modify_post_amount" => 0,
            "need_serial_number" => "true",
            "only_platform_cost_amount" => "0",
            "order_amount" => "600",
            "order_expire_time" => "1800",
            "order_id" => "4781320682406083640",
            "order_level" => "3",
            "order_status" => $this->orderStatus, // 订单状态，枚举为 2(未发货),3(已发货),5(已收货或已完成),255(已完成)
            "order_status_desc" => "待支付",
            "order_type" => "0",
            "order_type_desc" => "普通订单",
            "origin_amount" => $this->sku_pay_amount / $this->item_num,
            "origin_id" => "43545454556",
            "out_product_id" => "432655662343",
            "out_sku_id" => "43564553",
            "out_warehouse_ids" => "[\\\"49574835439\\\",\\\"954764056\\\"]",
            "page_id" => "43545454556",
            "parent_order_id" => "4781320682406083640",
            "pay_amount" => $this->sku_pay_amount,
            "pay_time" => time(),
            "pay_type" => "1",
            "platform_cost_amount" => "0",
            "post_addr" => [
                "city" => [
                    "id" => "110000",
                    "name" => "市辖区"
                ],
                "encrypt_detail" => "丹棱街1号",
                "province" => [
                    "id" => "110000",
                    "name" => "北京市"
                ],
                "street" => [
                    "id" => "110000",
                    "name" => "中关村街道"
                ],
                "town" => [
                    "id" => "110000",
                    "name" => "海淀区"
                ]
            ],
            "post_amount" => "10",
            "post_insurance_amount" => "10",
            "pre_sale_type" => "0",
            "product_id" => "3473196049974326153",
            "product_id_str" => "3473196049974326153",
            "product_name" => "XX鞋子",
            "product_pic" => "https:xxxx",
            "promise_info" => "{
        \\\"identifier\\\":\\\"R#2022-07-13\\\",\\\"receipt\\\":\\\"{\\\\\\\"FulfillDecisionId\\\\\\\":\\\\\\\"7117833576879604004\\\\\\\",\\\\\\\"LatestPushTime\\\\\\\":1657533600,\\\\\\\"PromiseTag\\\\\\\":\\\\\\\"ENUM:NEXT2_DAY\\\\\\\",\\\\\\\"ExpReceiptTime\\\\\\\":1657727999,\\\\\\\"RealWarehouseCode\\\\\\\":\\\\\\\"101\\\\\\\"}\\\"}",
            "promotion_amount" => "0",
            "promotion_detail" => [],
            "promotion_pay_amount" => "0",
            "promotion_platform_amount" => "0",
            "promotion_redpack_amount" => "0",
            "promotion_redpack_platform_amount" => "0",
            "promotion_redpack_talent_amount" => "0",
            "promotion_shop_amount" => "0",
            "promotion_talent_amount" => "0",
            "quality_check_info" => [],
            "quality_inspection_status" => "质检状态",
            "receive_type" => "1",
            "reduce_stock_type" => "1",
            "reduce_stock_type_desc" => "下单减库存",
            "relation_order" => [
                "relation_order_id" => "1234567",
                "write_off_no" => "xxxx"
            ],
            "room_id" => "435454545",
            "room_id_str" => "1473196049974326153",
            "second_cid" => "20174",
            "send_pay" => "1",
            "send_pay_desc" => "鲁班广告",
            "ship_time" => "1617355413",
            "shop_cost_amount" => "100",
            "sku_car_model_desc" => "车型",
            "sku_customization_info" => [],
            "sku_id" => "3254535",
            "sku_order_tag_ui" => [
//                [
//                    "help_doc" => "",
//                    "key" => "compass_source_ad_mark",
//                    "sort" => 0,
//                    "tag_type" => "",
//                    "text" => "广告",
//                    "extra" => "",
//                    "icon" => ""
//                ],
//                [
//                    "help_doc" => "",
//                    "key" => "compass_source_content_type_video",
//                    "sort" => 0,
//                    "tag_type" => "",
//                    "text" => "短视频",
//                    "extra" => "",
//                    "icon" => ""
//                ]
            ],
            "sku_yun_warehouse_info" => [],
            "source_platform" => "XXX",
            "spec" => [
                [
                    "name" => "颜色",
                    "value" => "蓝"
                ]
            ],
            "store_info" => [
                "extra" => "扩展字段",
                "store_address" => [],
                "store_id" => "1",
                "store_name" => "门店名称",
                "store_tag_map" => [],
                "store_tel" => "13888888888"
            ],
            "sub_b_type" => "1",
            "sub_b_type_desc" => "app",
            "sum_amount" => "200",
            "supplier_id" => "fsgfgsdg",
            "tax_amount" => "8",
            "tax_amount_not_come_out" => "0",
            "theme_type" => "1",
            "theme_type_desc" => "直播间",
            "third_cid" => "20174",
            "trade_type" => $this->orderTradeType,
            "trade_type_desc" => "拼团",
            "update_time" => "1617355413",
            "video_id" => "43545454556",
            "warehouse_ids" => "[\\\"49574835439\\\",\\\"954764056\\\"]",
            "writeoff_info" => []
        ];

        $logisticsInfo = [
            "company" => "shunfeng",
            "company_name" => "顺丰",
            "delivery_id" => "shunfeng_3617355413",
            "guarantee_amount" => "100",
            "hour_up_pickup_code" => "7198",
            "product_info" => [],
            "ship_time" => "1617355413",
            "sp_discount_price" => "300",
            "sp_price" => "400",
            "sp_total_price" => "700",
            "tracking_no" => date("YmdHis"),
            "transit_merge_type" => "merge"
        ];

        $sku_order2 = $sku_order;
        $sku_order2['code'] = 'SKUA00001';
        $sku_order2['originSkuCode'] = '47813206824060001';
        $sku_order2['origin_amount'] = 0;
        $sku_order2['promotion_amount'] = 0;
        $sku_order2['modify_amount'] = 0;
        $sku_order2['platform_cost_amount'] = 0;

        $orderAmount = 0;

        return [
            "data" => [
                "shop_order_detail" => [
                    "open_address_id" => sprintf('securityKey_%s', date('Ymd')),
                    "accept_order_status" => "1",
                    "address_tag_ui" => [],
                    "app_id" => "1128",
                    "appointment_ship_time" => "0",
                    "author_cost_amount" => "0",
                    "aweme_id" => "Youyou",
                    "b_type" => "2",
                    "b_type_desc" => "抖音",
                    "biz" => "2",
                    "biz_desc" => "小店",
                    "buyer_words" => "取☀消😊订🌟单🎉",
                    "cancel_reason" => "支付超时",
                    "channel_payment_no" => "mock_DPM2304261117519001500291007185",
                    "create_time" => time(),
                    "d_car_shop_biz_data" => [],
                    "doudian_open_id" => "1@#SGf7u/L4T728WdIaNcm6c+7SOqTObqbPh6wJBSm6lRGO+VEipIFB4EZDoWtkW1ThcrgNhg==",
                    "earliest_receipt_time" => "0",
                    "early_arrival" => "false",
                    "encrypt_pay_tel" => "134",
                    "encrypt_post_receiver" => "aaa",
                    "encrypt_post_tel" => "1231234",
                    "exp_ship_time" => time(),
                    "finish_time" => "0",
                    "greet_words" => "贺卡",
                    "latest_receipt_time" => "0",
                    "logistics_info" => [$logisticsInfo],
                    "main_status" => $this->orderMainStatus,
                    "main_status_desc" => "已全部发货",
                    "mask_pay_tel" => "XXX",
                    "mask_post_addr" => [
                        "city" => [
                            "id" => "310000",
                            "name" => "市辖区"
                        ],
                        "detail" => "生单工***",
                        "province" => [
                            "id" => "31",
                            "name" => "上海市"
                        ],
                        "street" => [
                            "id" => "310120001",
                            "name" => "金海街道"
                        ],
                        "town" => [
                            "id" => "310120",
                            "name" => "奉贤区"
                        ]
                    ],
                    "mask_post_receiver" => "生***",
                    "mask_post_tel" => "1********20",
                    "modify_amount" => 0,
                    "modify_post_amount" => "0",
                    "only_platform_cost_amount" => "0",
                    "open_id" => "69175",
                    "order_amount" => "20500",
                    "order_expire_time" => "1800",
                    "order_id" => $order_id,
                    "order_level" => "2",
                    "order_phase_list" => [],
                    "order_recycle_info" => [],
                    "order_status" => $this->orderStatus, // 订单状态，枚举为 2(未发货),3(已发货),5(已收货或已完成),255(已完成)
                    "order_status_desc" => "已发货",
                    "order_type" => "0",
                    "order_type_desc" => "普通订单",
                    "packing_amount" => "0",
                    "pay_amount" => $this->pay_amount,
                    "pay_time" => time(),
                    "pay_type" => "2",
                    "platform_cost_amount" => "0",
                    "post_addr" => [
                        "city" => [
                            "id" => "310000",
                            "name" => "市辖区"
                        ],
                        "encrypt_detail" => "金海街道",
                        "province" => [
                            "id" => "31",
                            "name" => "上海市"
                        ],
                        "street" => [
                            "id" => "310120001",
                            "name" => "金海街道"
                        ],
                        "town" => [
                            "id" => "310120",
                            "name" => "奉贤区"
                        ]
                    ],
                    "post_amount" => "0",
                    "post_insurance_amount" => "0",
                    "post_origin_amount" => "0",
                    "post_promotion_amount" => "0",
                    "promise_info" => "{\"identifier\":\"S#2023-04-26\"}",
                    "promotion_amount" => "0",
                    "promotion_detail" => [],
                    "promotion_pay_amount" => "0",
                    "promotion_platform_amount" => "0",
                    "promotion_redpack_amount" => "0",
                    "promotion_redpack_platform_amount" => "0",
                    "promotion_redpack_talent_amount" => "0",
                    "promotion_shop_amount" => "0",
                    "promotion_talent_amount" => "0",
                    "receipt_date" => "2023-08-07",
                    "recommend_end_ship_time" => strtotime('+14 day'),
                    "recommend_start_ship_time" => strtotime('+7 day'),
                    "seller_remark_stars" => "0",
                    "seller_words" => "取消",
                    "serial_number_list" => "[\\\"546443524543534\\\",\\\"646443524543534\\\"]",
                    "ship_time" => time(),
                    "shop_cost_amount" => "0",
                    "shop_id" => "94956",
                    "shop_name" => "订单专用_测试店三",
                    "shop_order_tag_ui" => [],
                    "sku_order_list" => [
                        $sku_order, $sku_order2
                    ],
                    "sub_b_type" => "3",
                    "sub_b_type_desc" => "H5",
                    "supermarket_order_serial_no" => "135334",
                    "target_arrival_time" => "0",
                    "tax_amount" => "0",
                    "tax_amount_not_come_out" => "0",
                    "total_promotion_amount" => "0",
                    "trade_type" => $this->orderTradeType,
                    "trade_type_desc" => "普通",
                    "update_time" => time(),
                    "user_coordinate" => [],
                    "user_icon" => "https://p26.douyinpic.com/img/aweme-avatar",
                    "user_id_info" => [
                        "encrypt_id_card_name" => "#zuLyd4U4J3p+czzXkwg+ZQ673h7KTcrKOddb5iPGAAE0K3MYJmgXEXof9LDtoScAfMKvdVRqpAL4CEI3SrLwYATIzTF9Qw==",
                        "encrypt_id_card_no" => "#zuLyd4U4J3p+czzXkwg+ZQ673h7KTcrKOddb5iPGAAE0K3MYJmgXEXof9LDtoScAfMKvdVRqpAL4CEI3SrLwYATIzTF9Qw=="
                    ],
                    "user_nick_name" => "这是个名字",
                    "user_tag_ui" => [],
                    "order_tag" => [
                        'shop_delivery_appointment_company' => [
                            'express_company_code' => 'shunfeng',
                            'express_company_name' => '顺丰',
                        ]
                    ],
                ]
            ],
            "code" => 10000,
            "msg" => "success",
            "sub_code" => "",
            "sub_msg" => ""
        ];
    }

    protected function getDateTime($str = '')
    {
        return !empty($str) ? date("YmdHis") . $str : date("Y-m-d H:i:s");
    }

    public function token_create()
    {
        $accessToken = date('YmdHis') . Str::random(6);

        return [
            "code" => 10000,
            "msg" => "success",
            "sub_msg" => "",
            "sub_code" => "",
            "data" => [
                "access_token" => sprintf("dy_token_%s", $accessToken), // token
                "expires_in" => 60 * 60 * 24, // access_token过期时间；Unix时间戳：秒, 有效期剩余多少秒
                "refresh_token" => sprintf("dy_refresh_token_%s", $accessToken), // 用于刷新access_token的刷新令牌（有效期：14 天）
                "scope" => "SCOPE", // 权限范围
                "shop_id" => 23323, // 店铺ID
                "shop_name" => "测试店铺", // 店铺名称
                "authority_id" => "1321324", // 授权ID,店铺授权为店铺id，达人授权为达人id；
                "auth_subject_type" => "WuLiuShang", // 授权主体类型
                "shop_biz_type" => 0, // 店铺业务类型。0：普通店铺，1：即时零售连锁店，2：即时零售个体店
            ]
        ];
    }

    // 刷新token
    public function token_refresh()
    {
        $accessToken = date('YmdHis') . Str::random(6);

        return [
            "code" => 10000,
            "msg" => "success",
            "sub_msg" => "",
            "sub_code" => "",
            "data" => [
                "access_token" => sprintf("dy_token_%s", $accessToken), // token
                "expires_in" => 60 * 60 * 24, // access_token过期时间；Unix时间戳：秒, 有效期剩余多少秒
                "refresh_token" => sprintf("dy_refresh_token_%s", $accessToken), // 用于刷新access_token的刷新令牌（有效期：14 天）
                "scope" => "SCOPE", // 权限范围
                "shop_id" => 23323, // 店铺ID
                "shop_name" => "测试店铺", // 店铺名称
                "authority_id" => "1321324", // 授权ID,店铺授权为店铺id，达人授权为达人id；
                "auth_subject_type" => "WuLiuShang", // 授权主体类型
                "shop_biz_type" => 0, // 店铺业务类型。0：普通店铺，1：即时零售连锁店，2：即时零售个体店
            ]
        ];
    }

    public function product_listV2()
    {
        $productId = 'dy_spu_' . date('YmdHis');
        $productId = 'dy_spu_20240703031130';
        $status = 0; // 商品在店铺中状态: 0-在线；1-下线；2-删除；
        $product1 = [
            "product_id" => $productId,
            "status" => $status,
            "can_combine" => "false",
            "can_not_combine_reason" => "已参加搭配",
            "category_detail" => [],
            "channel_main_product" => [],
            "check_status" => "2",
            "cos_ratio" => "0",
            "create_time" => "1619160933",
            "description" => "<p><img src='xxx'></p>",
            "discount_price" => "100",
            "extra" => "{}",
            "img" => "https://xxx",
            "is_package_product" => "true",
            "market_price" => "200",
            "mobile" => "022234455561233",
            "name" => "夏季男生白色短袖",
            "name_prefix" => "略",
            "name_suffix" => "略",
            "out_product_id" => "1617004369",
            "outer_product_id" => "dy001",
            "package_product_list" => "[3472490447010721067]",
            "pay_type" => "1",
            "product_type" => "0",
            "recommend_remark" => "【已废弃】",
            "sell_num" => "999",
            "shop_category" => [],
            "spec_id" => "1737144307943485",
            "sub_product_list" => "[3472490447010721067]",
            "title_limit" => [],
            "update_time" => "1619161933"
        ];

        $product2 = $product1;
//        $product2['product_id'] = 'dy_spu_' . date('Ymd') . rand(100000, 999999);
        $product2['product_id'] = 'dy_spu_20240703033845';
        $product2['status'] = 2;

        $data = $this->requestData['page'] > 1 ? [] : [$product1, $product2];

        return $this->_toResponseSuccess([
            "cursor_id" => "WzE2ODI1Nzc4MjksMTc2NDMxMDczMDU3MDg0M10=",
            "data" => $data,
            "page" => $this->requestData['page'],
            "size" => $this->requestData['size'],
            "total" => count($data)
        ]);
    }

    public function sku_list()
    {
        $sku1 = [
            "product_id" => $this->requestData['product_id'],
            "product_id_str" => $this->requestData['product_id'],
            "code" => 'dy_sku_' . date('YmdHis'),
            "id" => date('YmdHis') . rand(0000, 9999),
            "price" => "12",
            "spec_detail_id1" => "1737037851057159",
            "spec_detail_id2" => "0",
            "spec_detail_id3" => "0",
            "spec_detail_name1" => "默认",
            "spec_detail_name2" => "\"\"",
            "spec_detail_name3" => "\"\"",
            "channel_stock_num" => "11",
            "create_time" => "1621611875",
            "customs_report_info" => [
                "bar_code" => "条形码",
                "first_measure_qty" => "1",
                "first_measure_unit" => "克",
                "g_model" => "规格型号",
                "hs_code" => "aa",
                "report_brand_name" => "品牌",
                "report_name" => "品名",
                "second_measure_qty" => "2",
                "second_measure_unit" => "克",
                "unit" => "个",
                "usage" => "品牌"
            ],
            "is_suit" => "0",
            "multi_time_stocks" => [],
            "normal_stock_num" => "11",
            "open_user_id" => "0",
            "out_sku_id" => "0",
            "prehold_step_stock_num" => "20",
            "prehold_stock_map" => [],
            "prehold_stock_num" => "50",
            "prom_step_stock_num" => "100",
            "prom_stock_num" => "50",
            "sell_properties" => [],
            "settlement_price" => "12",
            "ship_rule_map" => [],
            "sku_status" => "true",
            "sku_type" => "0",
            "spec_id" => "1737037851056167",
            "step_stock_num" => "100",
            "stock_map" => [],
            "stock_num" => "100",
            "suit_num" => "0",
            "supplier_id" => "333",
            "volume" => "0"
        ];

        $sku2 = $sku1;
        $sku2['code'] = 'dy_sku_' . date('Ymd') . rand(100000, 999999);
        $sku2['id'] = date('YmdHis') . rand(0000, 9999);

        return $this->_toResponseSuccess([
            $sku1, $sku2
        ]);
    }

    public function order_searchList()
    {
        $page = $this->requestData['page'] ?? 0;
        $pageSize = $this->requestData['size'] ?? 0;

        $logisticsInfo = [
            "company" => "shunfeng",
            "company_name" => "顺丰",
            "delivery_id" => "shunfeng_3617355413",
            "guarantee_amount" => "100",
            "hour_up_pickup_code" => "7198",
            "product_info" => [],
            "ship_time" => "1617355413",
            "sp_discount_price" => "300",
            "sp_price" => "400",
            "sp_total_price" => "700",
            "tracking_no" => date("YmdHis"),
            "transit_merge_type" => "merge"
        ];

        $order = [
            "open_id" => "23431434",
            "order_amount" => "600",
            "order_expire_time" => "1800",
            "order_id" => "4781320682406083640",
            "order_level" => "2",
            "order_status" => "2",
            "order_status_desc" => "待支付",
            "order_tag" => [
                'shop_delivery_appointment_company' => [
                    'express_company_code' => 'shunfeng',
                    'express_company_name' => '顺丰',
                ]
            ],
            "order_type" => "0",
            "order_type_desc" => "普通订单",
            "original_shop_id" => "1234",
            "packing_amount" => "1",
            "pay_amount" => "500",
            "pay_time" => "1617355413",
            "pay_type" => "1",
            "platform_cost_amount" => "100",
            "post_addr" => [],
            "post_amount" => "10",
            "post_insurance_amount" => "10",
            "post_origin_amount" => "100",
            "post_promotion_amount" => "100",
            "promotion_pay_amount" => "10",
            "promotion_platform_amount" => "100",
            "promotion_redpack_amount" => "100",
            "promotion_redpack_platform_amount" => "100",
            "promotion_redpack_talent_amount" => "100",
            "promotion_shop_amount" => "100",
            "promotion_talent_amount" => "100",
            "receipt_date" => "2023-08-03",
            "seller_remark_stars" => "1",
            "seller_words" => "注意XX",
            "serial_number_list" => "[\\\"546443524543534\\\",\\\"646443524543534\\\"]",
            "ship_time" => "1617355413",
            "shop_cost_amount" => "100",
            "shop_id" => "77977",
            "shop_name" => "刘好好严选",
            "sub_b_type" => "1",
            "sub_b_type_desc" => "小程序",
            "supermarket_order_serial_no" => "27",
            "target_arrival_time" => "1660788000",
            "tax_amount" => "8",
            "total_promotion_amount" => "100",
            "trade_type" => "1",
            "trade_type_desc" => "拼团",
            "update_time" => "1617355413",
            "urge_deliver_Times" => "1",
            "logistics_info" => [$logisticsInfo],
        ];


        $orderList = [
            $order
        ];

        return $this->_toResponseSuccess([
            "page" => $page,
            "shop_order_list" => $orderList,
            "size" => $pageSize,
//            "total" => $page > 2 ? 0 : count($orderList),
            "total" => $page > 2 ? 0 : 300,
        ]);
    }


    // 获取前端组件token
    public function order_getMCToken()
    {
        return $this->_toResponseSuccess([
            'token' => Str::random(64),
            'expire_time' => strtotime('+12 hour'),
        ]);
    }

    public function order_batchDecrypt()
    {
//        $string = '{"code":50002,"msg":"业务处理失败","sub_code":"isv.business-failed:300001","sub_msg":"解密错误: 批量解密存在部分失败 FAQ: https://op.jinritemai.com/docs/question-docs/89/7093","data":{"decrypt_infos":[{"phone_no_a":"","phone_no_b":"","err_no":10030,"data_type":3,"expire_time":0,"cipher_text":"$$KUa3bT9HDc1WKFxnClLdmmkfAvslzlXFInRYJVosnyvjU089LeHFHslruDN8iV1oT5+fprAupVkp30hkF8SbvhKjZmLsysmLDK3oSnnZeHGN*CgYIASAHKAESPgo8083pYxX0w6jHRs0VN8XnbgN58ScPkhLjNGaMHCxdPSjjoCYYYyxx8tH0Z6ibt4VIsU/qq1cFhNOp1MYtGgA=$1$$","is_virtual_tel":false,"auth_id":"6921661036852510052","decrypt_text":"","err_msg":"您当天的查看额度已用完，请明日再看"}],"custom_err":{"err_code":300001,"err_msg":"解密错误: 批量解密存在部分失败"}},"log_id":"202510102244003624D31C617B2FFFD57B"}';
//
//        return json_decode($string);

        $result = [];
        $cipherInfos = $this->requestData['cipher_infos'] ?? [];

        foreach ($cipherInfos as $cipherInfo) {
            $auth_id = $cipherInfo['auth_id'];
            switch ($auth_id) {
                case '6946483719672894686':
                    $response = '{"code":10000,"msg":"success","sub_code":"","sub_msg":"","data":{"decrypt_infos":[{"auth_id":"6946483719672894686","phone_no_b":"","data_type":0,"is_virtual_tel":false,"expire_time":0,"err_msg":"待解密值cipher_text不能为空","phone_no_a":"","err_no":300013,"cipher_text":"","decrypt_text":""},{"err_no":0,"is_virtual_tel":false,"expire_time":0,"phone_no_a":"","phone_no_b":"","data_type":2,"auth_id":"6946483719672894686","cipher_text":"##J1XqAw2+yAQtnOTKmLLFwx2r5eS/3L+K8DOKwJqH6eS4z7mujjvm2u/LheJ/oyro9OpZrbU0c/Iarp/OEsqXGA3X4n1ROq2M0Qzd622mSg==*CgYIASAHKAESPgo8suwYy83/k+ed/LZNKv00T5OWuQCrJL0uZSIfbMwWruqrq1JyGp7SJD+Pn4cMmAQ5EhGgzszJdfISsT3qGgA=#1##","decrypt_text":"陈雅涵","err_msg":""},{"err_msg":"","phone_no_a":"17834575420","phone_no_b":"7459","err_no":0,"data_type":3,"auth_id":"6946483719672894686","decrypt_text":"17834575420-7459","is_virtual_tel":true,"expire_time":1761385770,"cipher_text":"$$PA4GQZPd5rhIYXcXrS9gXH0LBH+kz4qHGW1WocyDtDW10Kjl/S0X+8BALGSV7OinWV64kV3px9nT7NAVEsGFEaM93cAoqLu21zKlaN4PSETh*CgYIASAHKAESPgo8/4GGb3JjEbb1kQPXGNauYfsW3V2cNL4CPJ8HaqZw+0A3NcW4vHjgSFsXblalOPfcyCLrI9M1XnE0TFDsGgA=$1$$"}],"custom_err":{"err_code":0,"err_msg":""}},"log_id":"2025092517503083626DBDBD9CB380A46A"}';
                    return json_decode($response);
                case '6946488317946893407':
                    $response = '{"code":10000,"msg":"success","sub_code":"","sub_msg":"","data":{"decrypt_infos":[{"err_no":300013,"expire_time":0,"cipher_text":"","decrypt_text":"","phone_no_a":"","phone_no_b":"","data_type":0,"is_virtual_tel":false,"auth_id":"6946488317946893407","err_msg":"待解密值cipher_text不能为空"},{"is_virtual_tel":true,"auth_id":"6946488317946893407","cipher_text":"$$4rquGwdlI9YE6mRealOtJPNOVO42dFT7kfeOJcjjqxmapO1eXkxsqFSKP/PMA+AJLIZx3IM37lxkfbl//y6LxxDs+/wTkCrz5y26H9mzDCNx*CgYIASAHKAESPgo8RGG+dmy3qZfaOjZk88usom2IPPDxup3zVFKin2rEiCC6uXtAOEKLheonKhvLy0ou53JgO8y8DiL7ARYWGgA=$1$$","err_msg":"","phone_no_b":"2869","err_no":0,"data_type":3,"phone_no_a":"18425185724","expire_time":1761385771,"decrypt_text":"18425185724-2869"},{"is_virtual_tel":false,"expire_time":0,"err_msg":"","cipher_text":"##SnwOoqmiSLv+NRDFVmIkvyNa0gxIkto5qf/iLp8K7rz5JS69iz3WJ324UlSV8tSXUubv8a8w/vSYmZVxwcdEQQLZVpYxaURXxRFunoKwDQ==*CgYIASAHKAESPgo88bRcxSuVld4MOY9K1gHz/MD3SFUub1gnIygAy6GihS0EzC2JEP0JvsFxUo3bls8GMylFTp8dr70AkLIiGgA=#1##","decrypt_text":"王佳丽","phone_no_a":"","phone_no_b":"","err_no":0,"data_type":2,"auth_id":"6946488317946893407"}],"custom_err":{"err_code":0,"err_msg":""}},"log_id":"20250925175030B958BE75A3AD4FC95EA1"}';
                    return json_decode($response);

                case '6946499085741724676':
                    $response = '{"code":10000,"msg":"success","sub_code":"","sub_msg":"","data":{"decrypt_infos":[{"phone_no_a":"","err_no":300013,"is_virtual_tel":false,"expire_time":0,"auth_id":"6946499085741724676","cipher_text":"","decrypt_text":"","err_msg":"待解密值cipher_text不能为空","data_type":0,"phone_no_b":""},{"expire_time":0,"auth_id":"6946499085741724676","err_msg":"","phone_no_b":"","data_type":3,"is_virtual_tel":false,"cipher_text":"$$OMuVzfj4v2MdOoHYm/1oD+kMjfMUXOD7Qfl1e6fQ3q1p/AiiMzI5IRZYHgmPZK2roOWTjeDzgz59py/0boodjHE8C3f9sLKRaTM+ySHuOcbW*CgYIASAHKAESPgo8S1xg9KX4Z/Qw9P0ds5b0OpJ8qO34icZjN4u2/Mzd2oCCyTidBaVyQ+SMjC6g6mH5j+1/89x0w6ogdMNiGgA=$1$$","decrypt_text":"13681122012","phone_no_a":"","err_no":0},{"err_no":0,"is_virtual_tel":false,"expire_time":0,"auth_id":"6946499085741724676","data_type":2,"cipher_text":"##wQEeCGrqqZHbvyIpGGbP8R6fgwuvcVr68YQz/vnxK46hSSZi+sSZcZXZPHQ+/osq4fwysf5vzO2WOjRcrfx4e7LXZfB/rjGdbeUsIkRa5Q==*CgYIASAHKAESPgo81j5pOWButD3hk4KuxBzjVa9galoYcaPhogOUs39jR9OzuhodLJjLAMtAuWW3lsuxJ/t4HLTgp7QXusnSGgA=#1##","decrypt_text":"龚艳春","err_msg":"","phone_no_a":"","phone_no_b":""}],"custom_err":{"err_code":0,"err_msg":""}},"log_id":"20250925174532B958BE75A3AD4FC7DF64"}';
                    return json_decode($response);
                case '6946519159483012100':
                    $response = '{"code":10000,"msg":"success","sub_code":"","sub_msg":"","data":{"decrypt_infos":[{"phone_no_a":"","err_no":300013,"is_virtual_tel":false,"expire_time":0,"auth_id":"6946519159483012100","cipher_text":"","decrypt_text":"","err_msg":"待解密值cipher_text不能为空","data_type":0,"phone_no_b":""},{"expire_time":0,"auth_id":"6946519159483012100","err_msg":"","phone_no_b":"","data_type":3,"is_virtual_tel":false,"cipher_text":"$$LgjoKulvL4+m4lVDORjui2Xpw/NB4wgUZzIIKzOmi9ngcTpIgFw7d4SM9/wQhLBmh+uSpLdCYcxFyrEsZ7YZYLlEn3NgONqNO6GzHU/Do4QV*CgYIASAHKAESPgo8QkBcxfeQ44n/l2CmLea8GMauGv7b/rQp/v8al2DVhNLVDEJkEWcvhNAt/Rh/ljaMcSjGv9TZSbWK1Q4eGgA=$1$$","decrypt_text":"13681122012","phone_no_a":"","err_no":0},{"err_no":0,"is_virtual_tel":false,"expire_time":0,"auth_id":"6946519159483012100","data_type":2,"cipher_text":"##4fwQ0tVz00H9Pboyo1jVVGF6lSfyzeW0pQ1YbHEEKcu0RtDmJtZYOBnwrJ5I5/zWE5QsM4iqK8W7BvIp5Mf/FFw6pA6Rlj5cLgdQUlfDiw==*CgYIASAHKAESPgo8sGGAJbp9oUDXrANgZ3Jf1pjUdn2KruI58j8DNniSGbNlLaGb5UsQjAxS+jcBLnMdechatNdO9m7dgG+JGgA=#1##","decrypt_text":"龚艳春","err_msg":"","phone_no_a":"","phone_no_b":""}],"custom_err":{"err_code":0,"err_msg":""}},"log_id":"20250925174532B958BE75A3AD4FC7DF64"}';
                    return json_decode($response);
            }


            $result[] = [
                'cipher_text' => $cipherInfo['cipher_text'],
                'decrypt_text' => $cipherInfo['cipher_text'],
            ];
        }

        return $this->_toResponseSuccess([
            'decrypt_infos' => $result,
        ]);
    }


    private function _toResponseSuccess($data)
    {
        return [
            "code" => 10000,
            "msg" => "success",
            "sub_code" => "",
            "sub_msg" => "",
            "data" => $data,
        ];
    }
}
